Function loonLayer is used to create loon non-interactive layers. For some ggplot2 extension packages, one can edit this function to realize the transformation.

loonLayer(
  widget,
  layerGeom,
  data,
  ggplotPanelParams,
  ggObj,
  parent,
  label,
  ...
)

Arguments

widget

a loon widget

layerGeom

a ggplot Geom layer object

data

a data frame (i.e. x, y, etc) of this particular layer

ggplotPanelParams

ggplot panel parameters

ggObj

the ggplot object

parent

a valid Tk parent widget path.

label

label used in the layers inspector

...

not for users