Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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)

amber

Automated Model Benchmarking R Package

v1.0.3
GPL-3
Authors
Christian Seiler [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.