PlotMap_Fn | R Documentation |
PlotMap_Fn
is a hidden function to plot a map and fill in regions with colors to represent intensity in an areal-interpretion of model results
PlotMap_Fn(
MappingDetails,
Mat,
PlotDF,
MapSizeRatio = c(`Width(in)` = 4, `Height(in)` = 4),
Xlim,
Ylim,
FileName = paste0(getwd(), "/"),
Year_Set,
Rescale = FALSE,
Rotate = 0,
Format = "png",
Res = 200,
zone = NA,
Cex = 0.01,
textmargin = "",
add = FALSE,
pch = 15,
outermargintext = c("Eastings", "Northings"),
zlim = NULL,
Col = NULL,
Legend = list(use = FALSE, x = c(10, 30), y = c(10, 30)),
mfrow = c(1, 1),
plot_legend_fig = TRUE,
land_color = "grey",
ignore.na = FALSE,
map_style = "rescale",
...
)
MapSizeRatio |
Default size for each panel |
zlim |
two numeric values, specifying range for defining bounds of color scale.
If |
plot_legend_fig |
Boolean, whether to plot a separate figure for the heatmap legend or not |
land_color |
color for filling in land (use |
... |
arguments passed to |
This function was necessary to build because mapproj::mapproject
as used in maps::map
has difficulties with both rotations (for most projections) and
truncating the cocuntry boundaries within the plotting region (which mapproj::mapproject
appears to do prior to projection,
so that the post-projection is often missing boundaries that are within the plotting rectangle). I use rectangular projections by default, but Lamberts or Albers conformal
projections would also be useful for many cases.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.