powered by
Adds individual layer to a myIO widget
addIoLayer( myIO, type, color = NULL, label, data = NULL, mapping, transform = "identity", options = list(barSize = "large", toolTipOptions = list(suppressY = FALSE)) )
A modified myIO htmlwidget object with the new layer appended to the configuration.
myIO
an htmlwidget object created by the myIO() function
myIO()
chart type
optional CSS color string or vector for grouped layers
unique layer label
data frame backing the layer
named aesthetic mapping list
transform name applied before serialization
layer options passed through to the widget config
myIO(data = mtcars) |> addIoLayer( type = "point", label = "points", mapping = list(x_var = "wt", y_var = "mpg") )
Run the code above in your browser using DataLab