% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/future_climate.R
\name{plot_cmip6_anom}
\alias{plot_cmip6_anom}
\title{Download and plot essential climate data}
\usage{
plot_cmip6_anom(
  dataset = get_cmip6_anom(),
  zero_centered = FALSE,
  xlim = NULL,
  ylim = NULL,
  country = NULL,
  state = NULL,
  mask = TRUE,
  print = TRUE
)
}
\arguments{
\item{dataset}{Name of the tibble generated by \code{get_cmip6_anom}}

\item{zero_centered}{(boolean) Use a symmetric diverging scale around zero,
defaults to FALSE (scale runs from zero up).}

\item{xlim, ylim}{(numeric) Optional two-element longitude/latitude bounds to
zoom the map to a region, e.g. \code{xlim = c(-130, -60), ylim = c(20, 70)}.
The color scale is recomputed on the visible region.}

\item{country}{(string) Optional country name or ISO 3166-1 alpha-3 code to
zoom the map to that country. Requires the \code{geodata} package.}

\item{state}{(string) Optional state/province name (admin-1), used together
with \code{country} to zoom to a subnational region, e.g.
\code{country = "MEX", state = "Sonora"}. Requires the \code{geodata} package.}

\item{mask}{(boolean) If \code{country} is given, blank cells outside the
country border, defaults to TRUE.}

\item{print}{(boolean) Display map, defaults to TRUE.}
}
\value{
Invisibly returns a ggplot2 object with the change map.
}
\description{
Plots expected climate change (projection minus 1970-2000 baseline) computed by
\code{get_cmip6_anom()} with a diverging color scale centered on zero.
}
\details{
\code{plot_cmip6_anom} returns a pre-defined ggplot2 world map of expected
change in degrees C (or percent for precipitation variables), with blue for
cooling/drying and red for warming/wetting. Precipitation maps with both
increases and decreases automatically use the diverging scale even when
\code{zero_centered = FALSE}. Users may further modify the output chart.
}
\examples{
\donttest{
plot_cmip6_anom()
}

}
\references{
See \code{\link{get_cmip6}}.
}
\author{
Hernando Cortina, \email{hch@alum.mit.edu}
}
