Description Usage Arguments Details Value Author(s) See Also
Create HTML for a div element to contain one AnalysisPageServer data set
1 2 3 4 5 |
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. |
allow.zoom |
If TRUE (default) then allow zooming and panning. IF FALSE then do not allow it. |
plot.height |
If NULL (default) then do not specify 'data-plot-height' attribute. Otherwise, use this number as 'data-plot-height' attribute, which will specify the plot height (in pixels) |
div.width |
If NULL (default) then do not specify div width in style. Otherwise, supply a valid CSS width (e.g. "200px" or "60 and this will be rolled into the inline-style |
style |
String specifying inline style of this div or NULL (default).
If NULL then and |
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 |
extra.div.attr |
These are extra attributes to add to the div. For example you could
add an |
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.
HTML string
Brad Friedman
aps.dataset.divs
, a convenience wrapper for this
function to create multple divs at once.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.