plot_double_psupertime: Projects two different psupertimes onto each other, using...

Description Usage Arguments Details Value

View source: R/psupertime_plots.R

Description

To do this, psupertime builds an internal double_psupertime object containing the projections. Given two psupertime objects psuper_1 and psuper_2, you can call it in two ways:

Usage

1
2
3
4
5
6
7
plot_double_psupertime(
  double_obj = NULL,
  psuper_1 = NULL,
  psuper_2 = NULL,
  run_names = NULL,
  process = FALSE
)

Arguments

double_obj

Result of applying double_psupertime to two previously calculated psupertime objects

psuper_1,

psuper_2 Two previously calculated psupertime objects

run_names

Character vector of length two, labelling the psupertime inputs

Details

(1) By specifying the two psupertime objects you want to project: plot_double_psupertime(psuper_1=psuper_1, psuper_2=psuper_2)

(2) Or by first constructing a double_psupertime object: double_obj = double_psupertime(psuper_1, psuper_2) plot_double_psupertime(double_obj=double_obj)

For the coefficients of the two objects to be meaningfully applied to each other, the data needs to have been processed in the same way for each. We therefore recommend first preprocessing the data (either via psupertime's defaults, or via your preferred method, then running psupertime with smooth=FALSE and scale=FALSE.

Value

ggplot object plotting the two against each other


wmacnair/psupertime documentation built on July 10, 2020, 8:12 p.m.