Description Usage Arguments Details Value Author(s) Examples
Create interactive AnalysisPage plots from static data
1 2 3 4 5 6 7 8 | static.analysis.page(outdir, svg.files, dfs, titles, show.xy = FALSE,
use.rownames.for.ids = FALSE, check.rowname.case = TRUE,
check.html4.ids = TRUE, group.length.vecs = NULL, signif.digits = 3,
verbose = FALSE, overwrite = FALSE, write.client = TRUE,
client.basedir = system.file("htdocs/client/dist-apss", package =
"AnalysisPageServer"), app.html = "analysis-page-server-static.html",
build.full.url = write.client, data.subdir = if (write.client) "data" else
".", randomize.filename = FALSE)
|
outdir |
Base directory for output files. Will be created if it does not already exist (however, its parent directory must already exist). |
svg.files |
Character vector of paths to SVG files. NAs can be used
as placeholders for datasets that have data but no plot. Length must be
at least 1. If omitted then all NAs are used, something
like |
dfs |
List of data frames of the same length as |
titles |
A character vector of titles of the same length as |
show.xy |
Logical. If FALSE (default) then the first two columns of your
data (the x and y coordinates) are used to annotate the plot but not actually
exposed to the user in the table or on rollover. If TRUE then they are exposed.
Recycled to |
use.rownames.for.ids |
Logical, default FALSE. The default behavior is
to generate and assign unique IDs to each point. This makes it impossible
to tag two elements in the same plot, or even in different plots with the same ID.
If you set this to TRUE then your rownames are used. This means that if you
are not careful you might accidentally couple between multiple datasets on the page!
Recycled to length of |
check.rowname.case |
Logical, default TRUE. For data frames with
|
check.html4.ids |
Logical, default TRUE. For data frames with
|
group.length.vecs |
List of integer vectors or NULLs of the same length
as |
signif.digits |
Passed through to |
verbose |
Boolean, default FALSE. If TRUE then |
overwrite |
If FALSE (default) then an error is thrown if the base directory is not empty. If TRUE then files will be added to the directory, possibly overwriting existing files of the same name. |
write.client |
Boolean, default TRUE. Should I write the HTML/Javascript/CSS files necessary for the client, or just write the data files. The default is to write everything necessary. Use FALSE if you want to have only a single instance of the client files and only write data and plots with this function. |
client.basedir |
Path to client files. Default: |
app.html |
Path to application |
build.full.url |
Boolean, default is the same as |
data.subdir |
Subdirectory of |
randomize.filename |
Boolean, default FALSE. Should I add some random characters to the names of the plot and dataset files? Sometimes web browsers do not refresh these files properly and so adding these random characters can overcome these stubborn cache issues. |
Create interactive AnalysisPage plots from static data. An index.html file will be created which, when opened, will have all the data and interactivity.
Also in that subdirectory there will be other HTML and Javascript files as necessary.
Finally, your SVGs and data will be stored in subdirectories.
The first two columns of the data frame should be x and y coordinates of the points (or regions) in the plot that you want to associate with the rows of the data frame.
List with two components. First is $URL
, which is
the URL to index.html file, or, if build.full.url = FALSE
then just the query string.
and second is $paths.list
, which lists the paths to all of the written plot and data
files, in the format described in link{static.analysis.page.query.string}
(and
suitable for passing to that function as the parameter of the same name).
Brad Friedman
1 | message("See vignette StaticContent.html")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.