plot_statespace_ed: Time series plot of Euclidean distance

Description Usage Arguments Value See Also Examples

View source: R/plot_statespace_ed.R

Description

plot_statespace_ed generates a time series plot of the Euclidean distance in indicator state space from a defined reference conditions.

Usage

1

Arguments

x

The output tibble from the statespace_ed function.

Value

The function returns a ggplot object.

See Also

Other state assessment functions: plot_statespace_ch(), statespace_ch(), statespace_ed()

Examples

 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))

saskiaotto/INDperform documentation built on Oct. 27, 2021, 10:33 p.m.