Learn R Programming

amber (version 1.0.3)

plotZonalMeanStats: Plot zonal mean plots of AMBER results (bias, bias scores, etc)

Description

This function plots results from zonalMeanStats, i.e. zonal mean values of model and reference data and the zonal mean bias, centralized root-mean-square error, phase, inter-annual variability, and corresponding scores.

Usage

plotZonalMeanStats(zonalMeanStats, zonalMeanStatsUnits,
  lat.range = c(-50, 80), outputDir = FALSE)

Arguments

zonalMeanStats

A string that gives the name and location of the zonalMeanStats file produced by zonalMeanStats, e.g. '/home/project/study/zonalMeanStats'.

zonalMeanStatsUnits

A string that gives the name and location of the zonalMeanStatsUnits file produced by zonalMeanStats, e.g. '/home/project/study/zonalMeanStatsUnits'.

lat.range

Latitudinal range of ticks and labels on the horizontal axis, e.g. c(-50, 80).

outputDir

A string that gives the output directory, e.g. '/home/project/study'. The output will only be written if the user specifies an output directory.

Value

Figures that show zonal mean values of model and reference data, centralized root-mean-square error, phase, inter-annual variability, and corresponding scores for each variable and globally gridded reference data set.

Examples

Run this code
# NOT RUN {
library(amber)
library(classInt)
library(doParallel)
library(foreach)
library(Hmisc)
library(latex2exp)
library(ncdf4)
library(parallel)
library(raster)
library(rgdal)
library(rgeos)
library(scico)
library(sp)
library(stats)
library(utils)
library(viridis)
library(xtable)

zonalMeanStats <- system.file('extdata/zonalMeanStats', 'zonalMeanStats', package = 'amber')
zonalMeanStatsUnits <- system.file('extdata/zonalMeanStats',
 'zonalMeanStatsUnits', package = 'amber')
plotZonalMeanStats(zonalMeanStats, zonalMeanStatsUnits, outputDir = FALSE)

# }

Run the code above in your browser using DataLab