QtAC.2dplot: 2dplot

View source: R/QtAC_package.R

QtAC.2dplotR Documentation

2dplot

Description

This function plots potential, connectedness and resilience with respect to time. Curves are interpolated via a piecewise cubic spline.

Usage

QtAC.2dplot(
  mat,
  prop = NULL,
  time_int = NULL,
  time = "time",
  save = FALSE,
  filename = "2dplot"
)

Arguments

mat

dataframe containing a time series of systemic variables

prop

If prop = NULL, the three systemic variables are plotted w.r.t time in one plot each. If prop = "potential", "connectedness", or "resilience", only the selected systemic variable is plotted w.r.t time.

time_int

vector containing start time, end time, and step size to define the xaxis

time

unit (i.e. "years", "steps",...)

save

If save = TRUE, the 2D plot will be saved in a PNG file.

filename

If save = TRUE, the network will be saved in a file called filename.

Value

2D plot and, if save = TRUE, a PNG file containing the plots.


hannahschrenk/QtAC documentation built on July 27, 2023, 5:35 a.m.