Description Usage Arguments Value See Also Examples
plot_trend
creates for each indicator (IND) in the input tibble a
time series plot including the smoothed trend with 95% confidence interval
and the corresponding p- value based on the IND ~ time GAM.
1 | plot_trend(trend_tbl, pos_label = "topleft")
|
trend_tbl |
Output tibble from the |
pos_label |
Specifies the position of the annotation in the plot. Should
be one of "topleft" (default), "topright", "bottomleft" or "bottomright".
For more details see |
The function returns a list of ggplot
objects;
one for each indicator.
model_trend
that generates the model tibble for this function
1 2 3 4 5 6 7 8 | # Using the example data
trend_tbl <- model_trend_ex
pt <- plot_trend(trend_tbl)
# Show single plots using indicator names or indices
pt[[2]]
pt$Sprat
# Show all plots together
gridExtra::grid.arrange(grobs = pt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.