Write a "display object" file for a Trelliscope app
write_display_obj(cogdf, panel_example, base_path, id, name, group = "common",
desc = "", height = 500, width = 500, md_desc = "", state = NULL,
jsonp = TRUE, panel_img_col = NULL, self_contained = FALSE,
thumb = TRUE, split_layout = FALSE, split_aspect = NULL,
has_legend = FALSE, pb = NULL)
a data frame of cognostics, prepared with as_cognostics
an example object of one panel of a display (can be trellis, ggplot2, or htmlwidget object)
the base directory of the trelliscope application
a unique id for the application
name of the display
group that the display belongs to
description of the display
height in pixels of each panel
width in pixels of each panel
optional string of markdown that will be shown in the viewer for additional context about the display
the initial state the display will open in
should json for display object be jsonp (TRUE) or json (FALSE)?
which column (if any) is a panel image column?
should the Trelliscope display be a self-contained html document?
should a thumbnail be created?
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.
list indicating aspect ratios of axes for a split layour. Only applies to ggplot2 plot objects.
should a legend be reported for split_layout
optional progress bar object to pass in and use to report progress