| background | R Documentation |
A simple function to collect data for a map background (returns class
"Background") and methods operating an such a collection.
background(extent, waters = TRUE, reliefmap = TRUE, gridlines = TRUE,
pretty = FALSE, add = 0, tol = 0.005, strahler = 4, score = 3, ecrins2 = FALSE)
## S4 method for signature 'Background'
plot(x, mar = rep(0,4), plain = FALSE, lwd.rivers = 1, add = FALSE,
frame = TRUE, col, ...)
## S4 method for signature 'Background'
show(object)
## S4 method for signature 'Background'
layers(object, ...)
## S4 method for signature 'Background'
grid(object)
## S4 method for signature 'Background'
margin(object, ...)
## S4 method for signature 'Background'
labelmargin(object, ...)
## S4 method for signature 'Background'
pdf(object, file, width, height, dingbats = FALSE, ...)
extent |
Extent object as defined in raster. See also |
waters |
Include water bodies (rivers and lakes) from package sabotagdata.
See |
ecrins2 |
Use bigger dataset (Austria and neighbours)
See |
reliefmap |
Include a colored relief map water from package sabotagdata.
See |
gridlines |
Include grid as lines additional to polygon grid. Defaults to |
pretty |
Recalculate extent using |
add |
Argument passed on to |
tol |
Simplify geometries using package rgeos. See |
strahler |
Subset rivers with Strahler stream order. See
|
score |
Subset lakes by lake score. |
x, object |
|
mar |
Add margins (see |
plain |
Do not plot anything but open plotting window. |
frame |
Draw a frame around figure. |
col |
Color of water bodies. If missing an internal default is applied. |
add |
|
lwd.rivers |
Linewidth for rivers. Multiplier to normalized strahler values. |
file, width, height, dingbats |
Arguments for pdf. See |
... |
To be passed to methods. Experimental. |
background: returns an object where all layers are cropped to a common
extent. These layers can be accessed by layers(object), the method
returns a list. layers(x)$grid returns what floragrid calculated
on the input extent.
layers: is a shortcut to return slot(object, "layers"). This
method should be used to return the content of this slot.
grid: returns the grid of objects of class background.
margins: returns the outer margin of floragrid computed on
inherited extent of object (see extent).
labelmargin: returns an object (class SpatialPointsDataFrame)
that can be used to plot margin labels. Row and column labels are computed
according to defaults of margin.
pdf creates PDF output.
An object of class background. A list with elements of class Spatial*.
Roland Kaiser
sabotagdata
x <- background(extent(12,13,47,48))
plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.