plotPair: plotPair

Description Usage Arguments Examples

View source: R/FUNCTION_plotPair.R

Description

Function to plot 2 time series with various options

Usage

1
2
3
4
5
6
7
plotPair(
  X,
  labels = NULL,
  layout = "single",
  plot.type = "print",
  colors = NULL
)

Arguments

X

a data frame with 3 series, the first one is the time step (typically year)

labels

vector with labels for the 3 columns of X. if NULL, then col names are used

layout

plot layout. currently includes: "single", "2axes", "2panels"

plot.type

plot style. Currently includes "print" as the default, and "shiny" for use in apps.

colors

vector with colors. Details depend on plot type. If NULL, use a built-in default specific for that plot type.

Examples

1
plotPair(SPATData_EnvCov[,c("yr","EC_jflow","EC_pdo")])

SOLV-Code/SPATFunctions-Package documentation built on April 25, 2020, 12:59 a.m.