Plot censored gam fits vs. time
gamPlotDispSeason( gamResult = gamResult, analySpec = analySpec, fullModel = 2, seasAvgModel = 2, seasonalModel = 2, diffType = "regular", obserPlot = TRUE, interventionPlot = TRUE, seasAvgPlot = TRUE, seasAvgConfIntPlot = TRUE, seasAvgSigPlot = TRUE, fullModelPlot = TRUE, seasModelPlot = TRUE, BaseCurrentMeanPlot = TRUE, adjustedPlot = FALSE, gamSeasonFocus = TRUE )
gamResult
: output from procedure gamTestanalySpec
: analytical specificationsfullModel
: GAM # for displaying full GAM (e.g., 0, 1, 2)seasAvgModel
: GAM # for displaying seasonally average GAMseasonalModel
: GAM # for displaying seasonal GAMdiffType
: plot predicted baseline mean ('regular') or adjusted baseline mean ('adjusted')obserPlot
: logical field indicating whether to plot observationsinterventionPlot
: logical field indicating whether to plot interventions (e.g., method changes)seasAvgPlot
: logical field indicating whether to plot seasonal average GAMseasAvgConfIntPlot
: logical field indicating whether to plot confidence interval for seasonal average GAMseasAvgSigPlot
: logical field indicating whether to plot significant increasing and decreasing trends for seasonal average GAMfullModelPlot
: logical field indicating whether to plot full GAMseasModelPlot
: logical field indicating whether to plot seasonal GAMBaseCurrentMeanPlot
: logical field indicating whether to plot baseline and current meanadjustedPlot
: logical field indicating whether to plot adjusted modelgamSeasonFocus
: logical field indicating whether to plot focus on season mean## Not run: # Specify parameter and station to analyze dep <- 'do' stat <- 'CB5.4' layer <- 'B' # Prepare data and set up specifications for analysis dfr <- analysisOrganizeData (dataCensored) df <- dfr[[1]] analySpec <- dfr[[2]] # Apply gamTest gamResult <- gamTest(df, dep, stat, layer, analySpec=analySpec) gamPlotDisp(gamResult = gamResult, analySpec = analySpec, fullModel = 2, seasAvgModel = 2, seasonalModel = 2, diffType = "regular", obserPlot = TRUE, interventionPlot = TRUE, seasAvgPlot = TRUE, seasAvgConfIntPlot = FALSE, seasAvgSigPlot = FALSE, fullModelPlot = TRUE, seasModelPlot = TRUE, BaseCurrentMeanPlot = FALSE, adjustedPlot = FALSE) # Apply gamTestSeason gamResult2 <- gamTestSeason(df, dep, stat, layer, analySpec=analySpec, gamSeasonPlot = c("7/15-8/15", "purple", "range")) gamPlotDispSeason(gamResult = gamResult2, analySpec = analySpec, fullModel = 2, seasAvgModel = 2, seasonalModel = 2, diffType = "regular", obserPlot = TRUE, interventionPlot = TRUE, seasAvgPlot = TRUE, seasAvgConfIntPlot = FALSE, seasAvgSigPlot = FALSE, fullModelPlot = FALSE, seasModelPlot = FALSE, BaseCurrentMeanPlot = TRUE, adjustedPlot = FALSE, gamSeasonFocus = TRUE) ## End(Not run)
gamPlotDisp
Useful links