panels | R Documentation |
Panels Wrapper Function
panels(.x, .f, ...)
.x |
a list or atomic vector (see |
.f |
a function, formula, or atomic vector (see |
... |
additional arguments passed on to .f (see |
See map
library(dplyr)
library(tidyr)
library(plotly)
ggplot2::mpg %>%
nest(data = !one_of(c("manufacturer", "class"))) %>%
mutate(panel = map_plot(data, function(x) {
plot_ly(data = x, x = ~hwy, y = ~cty,
type = "scatter", mode = "markers")
})) %>%
trelliscope(name = "city_vs_highway_mpg")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.