embed.APS.dataset(plot, df, title, show.sidebar = TRUE, show.table = TRUE, num.table.rows = 10, extra.html.classes = character(), extra.div.attr = character(), svg.args = list(), eval.args = list(envir = parent.frame()), outdir = get.APS.outdir(), randomize.filename = TRUE, ...)
eval.args
.
If a function, then the function will be called with no arguments. In that
case you would control the context yourself by setting the function's environment.
If path to an SVG then you would have already made the plot, and that would be used.
If missing then no plot is drawn---only the table is shown.plot
is not a character).aps.dataset.divs
.)aps.dataset.divs
.)aps.dataset.divs
.)aps.dataset.divs
.)aps.dataset.divs
.)svg
function. This should be a named list. In particular, consider
something like list(width = 8, height=5)
to change the aspect ratio.evalq
when evaluating your
plot code. Ignored if plot
is character or a function. Otherwise
it should be a named list. Default is list(envir = parent.frame())
,
which means the evaluation will happen in the calling frame.get.APS.outdir()
, which is
either "." or the directory of your knit2html target .html file.static.analysis.page
(but here the default is TRUE).static.analysis.page
.
ot overwrite
, outdir
, or write.client
knit2html
. It
makes a few assumptions that are valid in that context.It makes a call to static.analysis.page
for you
to annotate and write the SVG and JSON files, then emits
the element to STDOUT.
outdir
defaults to ".".
It only does one plot/dataset at a time.
message("See vignette embedding.html")
Run the code above in your browser using DataLab