Learn R Programming

WACS (version 1.1.0)

WACSplotdensity: For plotting fitted bivariate densities of residuals

Description

For plotting fitted bivariate densities of residuals

Usage

WACSplotdensity(
  wacsdata = NULL,
  wacspar = NULL,
  season,
  dimens = c(1, 2),
  dry = T,
  DIR = "./"
)

Arguments

wacsdata

WACS data obtained when calling WACSdata on original climate series

wacspar

WACS parameters estimated when calling WACSestim

season

season to be considered (a scalar)

dimens

a vector of length 1 or 2 indicating the marginals to be plotted

dry

indicates whether dry weather states (if dry=TRUE) or wet weather states (if dry=FALSE) must be considered

DIR

Directory in which saving the Figures

Examples

Run this code
# NOT RUN {
  ## Simple example
  data(ClimateSeries)
  ThisData = WACSdata(ClimateSeries)
  ThisPar  = WACSestim(ThisData)
  WACSplotdensity(ThisData,ThisPar,season=2,dimens=c(2,3),dry=TRUE) 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab