write_panel | R Documentation |
Write a plot object as a panel in a Trelliscope display
write_panel(
plot_object,
key,
base_path,
name,
group = "common",
width,
height,
jsonp = TRUE,
split_layout = FALSE
)
plot_object |
a plot object to be written (can be trellis, ggplot2, or htmlwidget) |
key |
a string identifying the panel key, which will be used as the panel file name and which the |
base_path |
the base directory of the trelliscope application |
name |
name of the display that the panel belongs to |
group |
group name of the display that the panel belongs to |
width |
width in pixels of each panel |
height |
height in pixels of each panel |
jsonp |
should json for panel be jsonp (TRUE) or json (FALSE)? |
split_layout |
boolean that determines if the layout is split into components like a facet_grid vs. individual panels like facet_wrap. Only applies to ggplot2 plot objects. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.