View source: R/whiteboard_primals.R
This function adds a line (not necessarily straight) to a whiteboard object.
1 2 3 4 5 6 7 8 9 10 11 |
wb |
A whiteboard object. |
name |
The name of the line to be used in labeling it on the whiteboard and referring to it when adding new elements. |
nstage |
For animated whiteboards, which stage should be added to? |
domain |
A numeric vector giving the full set of points on the x-axis to be evaluated in formulas. Defaults to the domain given for the existing board. |
df |
If preferred, instead of |
label |
Set to |
labelopts |
A list of aesthetic values to be passed to |
ggopts |
List of aesthetic values to be passed on to |
function |
A function that takes a single input and produces a single output, describing the line to be drawn. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.