Description Usage Arguments Value Note See Also Examples
Geographical representation of a data frame or raster map.
1 2 3 4 5 6 | plotOn(x, map = get_map(location = "trentino", zoom = 9),
latlon_crs = as.character("+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"),
layer = 1, legend = "bottomright", title = "Soil Water Content",
label = "swc", high = "blue", low = "white", alpha = 0.3,
facet_wrap = FALSE, nrow = NULL, ncol = NULL, range = NULL,
scale.fill.gradient = TRUE, scale = NULL, plot = TRUE, ...)
|
x |
a |
map |
geograghical map on which |
latlon_crs |
string containing the utilized latitude
longitude Coordinate Refarance System. See default in
|
layer |
brick layer utilized for geographical plotting. Default is 1. |
title |
string title of the graphic |
label |
string title (label) of the legend. It is
used as the name of the scale if
|
high |
colour for low end of gradient. See
|
low |
colourf or high end of gradient. See
|
alpha |
alpha coefficient. See http://en.wikipedia.org/wiki/Alpha_compositing. |
facet_wrap |
logical value. If |
nrow,ncol |
number of rows and columns. See
|
scale.fill.gradient |
logical value. If it is
|
scale |
alternative parameter to
|
plot |
logical value. If |
... |
further arguments |
A \class"ggplot" object.
Useful link: http://journal.r-project.org/archive/2013-1/kahle-wickham.pdf
1 2 3 4 5 6 7 | library(geographyTrentinoVis)
data(soilwatercontent)
soilwatercontent_mask <- CreateMask(raster=soilwatercontent) ## see default in Usage
x <- plotOn(x=soilwatercontent_mask)
x <- plotOn(x=soilwatercontent_mask,alpha=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.