Description Usage Arguments Details Value Author(s)
Annotate an AnalysisPage SVG plot
1 2 3 | annotate.analysis.page.svg(svg.filename, x, y, ids, group.lengths = length(x),
class.name = "plot-point", start = 0, uniquify.ids.suffix = NULL,
verbose = FALSE)
|
svg.filename |
Path to SVG file |
x |
Vector of x values |
y |
Vector of y values (same length as x) |
ids |
Vector of ids (same length as x) |
group.lengths |
Positive integer vector summing to |
class.name |
Class name to apply to points (default: "plot-point") |
start |
This is a 0-based integer. It is an offset of where to start looking for the plot elements. Default is 0, to start at the beginning. The meaning of the index after that is not exposed to the interface, however this function returns numbers that you can then use to "continue looking where you left off". |
uniquify.ids.suffix |
NULL or a string. If NULL then do not modify the
identifiers in the SVG file. If a string, then call |
verbose |
Logical. Default, FALSE. Passed through (as integer) to C++ |
The plot points are found by looking for a sequence of points whose x and y coordinates correlation >= 0.999 with the query x and y vectors.
Then each is tagged with class.name, and with the corresponding ID from the vector.
The file is overwritten.
Integer, the "next start" position, or where to start looking to continue after this stretch. (Invisibly). If no match was found then returns NULL.
Brad Friedman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.