aps.dataset.divs: aps.dataset.divs

Description Usage Arguments Details Value Author(s)

View source: R/custom.html.R

Description

Generate HTML for multiple DIV elements corresponding to a paths list

Usage

1
2
3
4
aps.dataset.divs(paths.list, show.sidebar = rep(TRUE, length(paths.list)),
  show.table = rep(TRUE, length(paths.list)), num.table.rows = 10,
  extra.html.class = rep(list(character()), length(paths.list)),
  extra.div.attr = rep(list(NULL), length(paths.list)), ...)

Arguments

paths.list

List of lists. The outer list corresponds to data sets and the inner lists have names in $plot and $data, giving relative paths to the SVG and JSON files (OK to omit one). Or a list with a $paths.list element, which would be used (this lets you pass the return value of static.analysis.page directly to this function).

show.sidebar

Logical vector of same length as paths.list to pass through corresponding elements to aps.one.dataset.div. Default: all TRUE.

show.table

Logical vector of same length as paths.list to pass through corresponding elements to aps.one.dataset.div. Default: all TRUE.

num.table.rows

Number of table rows to show. Default: 10. Recycled to length(paths.list).

extra.html.class

List (of charvecs) of same length as paths.list to pass through corresponding elements to aps.one.dataset.div. Default: All empty charvec.

extra.div.attr

List (of named charvecs or NULLs) of same length as paths.list to pass through corresponding elements to aps.one.dataset.div. Default: all NULL.

...

Passed through to aps.one.dataset.div

Details

This function is meant to work with the return value of static.analysis.page That function returns an object with a $paths.list element which contains the relative paths to each of the plots and datasets. You pass that through as the first argument to this function and it will make divs corresponding to those plots. The other arguments are either vectors or lists of corresponding lengths to pass through to aps.one.dataset.div.

Value

Charvec of HTML divs corresponding to datasets in paths.list.

Author(s)

Brad Friedman


AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.