Adds individual layer to a myIO widget
Arguments
- myIO
an htmlwidget object created by the
myIO()function- type
chart type
- color
optional CSS color string or vector for grouped layers. For
type = "regression"the first element colors the raw scatter and the optional second element colors the fitted line and confidence band; supply the same color twice to render data and model in a single hue.- label
unique layer label
- data
data frame backing the layer
- mapping
named aesthetic mapping list
- transform
transform name applied before serialization
- options
layer options passed through to the widget config
