trelliscopejs (version 0.1.11)

write_panel: Write a plot object as a panel in a Trelliscope display

Description

Write a plot object as a panel in a Trelliscope display

Usage

write_panel(plot_object, key, base_path, name, group = "common", width,
  height, jsonp = TRUE, split_layout = FALSE)

Arguments

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 panelKey column of the cognostics data frame should point to

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.