When a grouped_df (from dplyr::group_by()) is passed to
addIoLayer(), this function splits the data by group and
recursively calls addIoLayer() once per group, assigning
auto-colors from the Okabe-Ito palette.
expand_grouped_df(myIO, type, color, label, data, mapping, transform, options)The modified myIO widget with one layer per group.
a myIO htmlwidget
layer type
optional color vector; recycled across groups
base label; group values are appended
a grouped_df
aesthetic mapping list
transform name
layer options