Description Usage Arguments Value See Also Examples
View source: R/plot_statespace_ed.R
plot_statespace_ed
generates a time series plot of the Euclidean
distance in indicator state space from a defined reference conditions.
1 |
x |
The output tibble from the |
The function returns a ggplot
object.
Other state assessment functions:
plot_statespace_ch()
,
statespace_ch()
,
statespace_ed()
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Using the Baltic Sea demo data in the package
ind_sel <- ind_ex[,c(2,3,4,8,10,11)]
# --> selection of complementary and well performing indicators
ed <- statespace_ed(x = ind_sel, time = ind_ex$Year, ref_time = ind_ex$Year[1])
plot_statespace_ed(x = ed)
# To modify the plot:
p <- plot_statespace_ed(x = ed)
p + ggplot2::geom_point(col = "red") +
ggplot2::ylab("Eucl. Distance") +
ggplot2::geom_smooth(col="blue") +
ggplot2::theme(axis.text = ggplot2::element_text(size = 16),
axis.title=ggplot2::element_text(size = 18))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.