plot.spatInt | R Documentation |
Plot method for spatInt
objects.
## S3 method for class 'spatInt'
plot(
x,
basemap = TRUE,
type = "svalbard",
limits = "auto",
limits.lon = 0.001,
limits.lat = 0.001,
col.scale.limits = NULL,
legend.label = NA,
round.lat = FALSE,
n.lat.grid = 3,
round.lon = FALSE,
n.lon.grid = 3,
keep.glaciers = TRUE,
land.col = "grey60",
land.size = 0.1,
land.border.col = "black",
gla.col = "grey95",
gla.size = 0.1,
gla.border.col = "black",
grid.col = "grey70",
grid.size = 0.1,
base_size = 11,
legend.position = "right",
...
)
x |
|
basemap |
Logical. Should basemap from |
type |
Type of basemap. See |
limits |
Map limits. See |
limits.lon , limits.lat , round.lon , round.lat , n.lon.grid , n.lat.grid , land.size , land.col , gla.col , grid.col , land.border.col , gla.size , gla.border.col , grid.size , base_size , keep.glaciers , legend.position |
See |
col.scale.limits |
A numeric vector of lenght 2 defining the limits for color scale of interpolated results. If |
legend.label |
Label for color legend. If NA (default), the labels are extracted from the |
... |
Additional arguments. Required by R build checks. Ignore. |
Mikko Vihtakari
interpolate_spatial
basemap
data(chlorophyll) ## load an example dataset
x <- interpolate_spatial(chlorophyll, Subset = "From <= 10", value = "Chla") ## Interpolate
plot(x) ## Plot
## PlotSvalbard functions can be expanded by using ggplot2 syntax
plot(x) + geom_text(data = chlorophyll, aes(x = lon.utm, y = lat.utm, label = Station))
## Auto limits leave an empty space around the gridded surface.
## Changing limits is easiest using the inbuild argument
plot(x, limits = c(11.4,12.7,78.85,79.05))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.