set_curves | R Documentation |
Sets the data points in a graphic object. The function will identify
and set all ynames
in the graph.
set_curves(
g,
target,
ynames,
parsed,
curve_interpolation = TRUE,
nmatch = 0L,
matches = NULL,
dnr = NULL,
period = numeric(0),
show_realized = FALSE,
show_future = FALSE,
clip = TRUE,
target_height = list(show = TRUE, alpha = 0.05)
)
g |
A |
target |
A list with elements |
ynames |
A vector with the names of the response variables
for which matches are sought, e.g. |
parsed |
A list, result of |
curve_interpolation |
A logical indicating whether curve interpolation shoud be applied. |
nmatch |
Integer. Number of matches needed. When
|
matches |
List of vector containing the id's of the matches in
the donor data. List elements should be named after
|
dnr |
A string with the name of the donor data
(currently available are |
period |
A vector of length 2 with left and right ages
(decimal age). If |
show_realized |
A logical indicating whether the realized growth of the target child should be drawn |
show_future |
A logical indicating whether the predicted growth of the target child should be drawn |
clip |
A logical indicating whether clipping is needed |
target_height |
A list with two elements: |
The grid object g
with data points added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.