Plot the difference between 2 series

Description

PlotSeriesDifference plot the difference between 2 series (series - reference series). Similar to Anclim's "Plot of Differences".

Usage

1
PlotSeriesDifference(dataYearSeries=NA,refYearSeries=NA, diffFlag=TRUE)

Arguments

dataYearSeries

dataframe with climate data

refYearSeries

dataframe with climate data (reference)

diffFlag

logical TRUE=difference, FALSE=ratio

Value

none.

Author(s)

Jose Gama

Examples

1
2
3
4
setwd(system.file('extdata/', package='climtrends'))
fm1<-read.delim('c_Casl_3.txt',sep='',header=FALSE)
fmRef <- read.delim('c_casl_O_3_REF.TXT',sep='',header=FALSE)
PlotSeriesDifference(fm1[,c(1,12)],fmRef[,c(1,12)])

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.