Learn R Programming

climtrends (version 1.0.6)

PlotSeriesDifference: 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

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.

Examples

Run this code
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)])

Run the code above in your browser using DataLab