| map.stippling | R Documentation |
Create a points panel layout to add to spatialPlot.
Typically needed to stipple significant points in climatologies, or other types of coordinates
map.stippling(clim, threshold = 0.05, condition = "LT", ...)
clim |
A climatology. This can be for instance a verification climatology as produced by |
threshold |
Reference threshold value to specify stippling points. Default to |
condition |
Inequality operator to be applied considering the given |
... |
Further optional style arguments (see the examples). |
The function generates a "sp.points" layout list. Further formatting arguments can be passed here.
For further details and examples see the help of spplot.
A list with a SpatialPoints object,
along with optional style arguments like col, pch, cex etc.,
to be passed to the sp.layout argument in spatialPlot.
J. Bedia
spatialPlot, to which its output is passed.
map.lines, for further map customizations.
require(climate4R.datasets)
require(transformeR)
data("CFS_Iberia_tas")
p90clim <- climatology(CFS_Iberia_tas,
by.member = FALSE,
clim.fun = list("FUN" = quantile, prob = .9))
spatialPlot(p90clim, backdrop.theme = "coastline",
main = "CFSv2 Ensemble mean Tmean 90th percentile (July 2001)")
# We want to highlight the grid points with a 90th percentile > 25.5 degrees,
# on top of the Tmean model climatology:
pts <- map.stippling(p90clim, threshold = 15.5, condition = "GT")
spatialPlot(climatology(CFS_Iberia_tas),
backdrop.theme = "coastline",
sp.layout = list(pts))
# Some useful parameters that can be passed to the layout list:
pts <- map.stippling(p90clim, threshold = 15.5, condition = "GT",
pch = 19, # dots instead of default crosses
col = "black", # black dots
cex = .1) # point expansion factor (to make them very small)
spatialPlot(climatology(CFS_Iberia_tas),
backdrop.theme = "coastline",
sp.layout = list(pts))
# Suppose we want the stippling just in the first and fifth panels, for instance:
pts <- map.stippling(p90clim, threshold = 15.5, condition = "GT",
pch = 19, col = "black", cex = .1,
which = c(1, 5)) # which controls in which panel(s) the points are displayed
spatialPlot(climatology(CFS_Iberia_tas),
backdrop.theme = "coastline",
sp.layout = list(pts))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.