What matchData() produced, seen rather than summarised. Points that came back
NA are drawn as open circles rather than dropped, since a cluster of them is
usually the real finding — observations outside the environmental data's extent
or in a period it does not cover.
Arguments
- matched
an
sfobject frommatchData()- var
which matched variable to colour by;
NULLuses the first covariate- palette
a
grDevices::hcl.colors()palette name- main
plot title
- ...
passed to
graphics::plot()
Subset to one period first
The colour scale spans every observation passed in, so plotting several months of a seasonal variable at once mixes the seasons together and the map reads as noise: a warm February inshore point and a cool August offshore one can take the same colour. Subset to a period before plotting, and the spatial pattern reappears:
Examples
if (FALSE) { # \dontrun{
matched <- matchData(observations, env)
plot_matched(matched, "SST")
# Open circles are observations that matched nothing.
} # }