Helper for creating a scatter chart
Helper for creating a scatter chart
bb_scatterplot(bb, data, mapping = NULL, ..., point_opacity = NULL)
bb |
A |
data |
A |
mapping |
Mapping of variables on the chart, see |
... |
Alternative mapping, you can specify |
point_opacity |
Opacity for points, value between |
A billboard
htmlwidget
object.
This function can be used with billboarderProxy
in shiny application.
# Use first and second variable by default billboarder() %>% bb_scatterplot(data = iris) # Explicit mapping billboarder() %>% bb_scatterplot( data = iris, mapping = bbaes(Petal.Length, Petal.Width) ) %>% bb_x_axis(tick = list(fit = FALSE)) # Grouping variable billboarder() %>% bb_scatterplot( data = iris, mapping = bbaes(Sepal.Length, Sepal.Width, group = Species) ) # Size variable billboarder() %>% bb_scatterplot( data = iris, mapping = bbaes( Sepal.Length, Sepal.Width, group = Species, size = Petal.Width ) ) %>% bb_x_axis(tick = list(fit = FALSE))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.