View source: R/stats.clim.twd.R
| plot.clim_twd_stats | R Documentation |
Plots grouped trajectories or grouped ID-level metrics from
clim.twd.stats().
## S3 method for class 'clim_twd_stats'
plot(
x,
y = NULL,
type = c("trajectory", "id_metric"),
ids = NULL,
groups = NULL,
band = c("none", "sd", "limit95", "both"),
metric = c("lag_to_below_zero", "lag_to_max_adverse_decline", "lag_to_return_zero",
"max_adverse_decline_value", "change_end_adverse", "change_end_full_period",
"continuous_end_full_period"),
facet_by = c("IDs", "group", "none"),
legend_position = "bottom",
main = NULL,
...
)
x |
An object of class |
y |
Unused. |
type |
One of |
ids |
Optional numeric vector of IDs to plot. |
groups |
Optional character vector of group labels to plot. |
band |
One of |
metric |
Metric column from |
facet_by |
One of |
legend_position |
Legend position. |
main |
Optional title. |
... |
Further arguments passed to or from other methods. |
A ggplot2 object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.