Learn R Programming

g2r (version 0.1.0)

plot_callbacks: Plot Callbacks

Description

Add basic plot callbacks, will only be available in Shiny.

Usage

plot_callbacks(g2)

Arguments

g2

An object of class g2r as returned by g2r.

Value

A list containing x and y pixel coordinates of clicked/entered/left.

Details

This function will add the following callbacks

  • plot_enter

  • plot_leave

  • plot_click