Plots raster data in equal earth projection.
plot_map_eqearth(
dat,
ext = as.vector(terra::ext(dat)),
zlim = range(terra::values(dat), na.rm = TRUE),
col = viridis::viridis(20),
brks.pos = c(0, 1),
brks.lab = brks.pos,
npoints = 15,
nlines = 9,
title = "",
colour_scale = TRUE,
top_layer = NA,
top_layer.col = "ghostwhite",
site_xy = NA,
dim = NA
)
The raster data to plot.
The extent to use to plot the data. (default is extent of dat)
The range of the values to plot. (default is estimated from dat)
The color gradient to use. (default is viridis)
The position where to draw tick marks on the legend
The labels to add where the tickmarks are draw (default is tickmarks position)
The number of points used to draw the polygons and lines along each dimension. (default is 15 for a smooth result)
The number of coordinate lines to add in the background (default is 9)
A description title (default is empty).
A boolean to add the colour scale to the plot (default
TRUE
).
A raster to overlay on top of the map (e.g. a distribution).
A colour for plotting top_layer (default 'ghostwhite').
Coordinates of a location to add to the plot.
The dimension of the plotting window in inches (default dev.size()).
The set of coordinates ext projected in equal earth.