Learn R Programming

RCMIP5 (version 1.2.0)

worldPlot: Plot global data

Description

Plot a quick world map with reasonable coloring.

Usage

worldPlot(x, dates = unique(x$time), splitPacific = TRUE, capMinMax = TRUE, verbose = FALSE)

Arguments

x
A cmip5data object
dates
numeric. Which date value(s) should we plot?
splitPacific
logical. Try to split image in the Pacific?
capMinMax
logical. Cap data min and max by quantile? This may produce better coloring.
verbose
logical. Print info as we go?

Value

A ggplot object.

Details

Uses ggplot2::geom_raster.

Examples

Run this code
d <- cmip5data(1970:1975)   # sample data
worldPlot(d)

Run the code above in your browser using DataLab