Learn R Programming

AnalysisPageServer (version 1.6.2)

aps.one.dataset.div: aps.one.dataset.div

Description

Create HTML for a div element to contain one AnalysisPageServer data set

Usage

aps.one.dataset.div(svg.path = NULL, data.path = NULL, show.sidebar = TRUE, show.table = TRUE, num.table.rows = 10, extra.html.class = character(), extra.div.attr = NULL)

Arguments

svg.path
Path (could be relative to index.html) to (annotated) SVG file. NULL to only have data table and no picture.
data.path
Path (could be relative to index.html) to JSON file containing data set. NULL to only have SVG and no table
show.sidebar
Boolean. If TRUE (default) then show sidebar. If FALSE then omit it.
show.table
Boolean. If TRUE (default) then show sidebar. If FALSE then omit it.
num.table.rows
Number of table rows to show. Default: 10
extra.html.class
Thesee are extra classes to add to the div. This could be used for whatever extended purpose you want, like extra styling or logic. Should be an unnamed charvec. Default is character(), just use the basic required for APS.
extra.div.attr
These are extra attributes to add to the div. For example you could add an id attribute. It should be a named charvec, or NULL (default) to not anything extra beyond that required for APS.

Value

HTML string

Details

Create HTML for a div element to contain one AnalysisPageServer data set. This function does not created, modify, or even check for existance of the SVG and JSON files. You provide paths and this function just includes those paths, however awful, in the HTML returned.

See Also

aps.dataset.divs, a convenience wrapper for this function to create multple divs at once.