plotts: Plot multiple time series with different data ranges

Description Usage Arguments Author(s) Examples

View source: R/plotts.R

Description

Plot multiple time series with different data ranges.

Usage

1
2
plotts(tsL = list(), ylimL = list(), labL = list(), colL = list(),
  xlim = NULL, pointsL = NULL, title = "")

Arguments

tsL

list of object(s) of class ts

ylimL

list of objects(s) of y limits (x1, x2) for tsL. The default value is NULL, indicating that the ylim are set to the min and max value of ts1

labL

list of objects(s) of title for tsL

colL

list of objects(s) of colour for tsL

xlim

range of x-axis value; default is the range of the time series

pointsL

list of TRUE and FLASE. (default = NULL = points are plotted for all time series)

title

plot title

Author(s)

Johannes Reiche (Wageningen University)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# load example ts data (Sentinel-1 and Landsat NDVI time series; 09/2014 - 05/2016; Deforestation event in early 2016)
data(s1vv_lndvi_pixel)

# create ts using bfastts (bfast package)
tsS <- bfastts(s1vv_obs,as.Date(s1vv_date),type=c("irregular"))
tsL <- bfastts(lndvi_obs,as.Date(lndvi_date),type=c("irregular"))

# plot ts
plotts(tsL=list(tsL,tsS),labL=list("Landsat NDVI","Sentinel-1 VV [dB]"))
plotts(tsL=list(tsL,tsS),labL=list("Landsat NDVI","Sentinel-1 VV [dB]"),ylimL=list(c(0,1),c(-13,-6)))

jreiche/bayts documentation built on Feb. 3, 2021, 1:12 a.m.