Description Usage Arguments Details Value Author(s) See Also Examples
Find nice interval in grid schema.
1 2 |
x |
|
resolution |
Character. One of |
add |
Integer. Number of bordering rectangles of grid units (resolution
|
mar |
Integer vector. Numerical vector of the form
|
... |
Not used. |
verbose |
Print used resultion. |
The function helps in setting up an appropriate grid with options to add
additional strips of grid units systematically at all sides (argument
add
) or at specified margins (mar
). Arguments can be
combined.
Exent
object.
Roland Kaiser
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # initial extent
e0 <- extent(12.8,15.3,46.8,48.3)
# default is to use resolution GRID
pretty(e0)
# versions using resolution GRID
e1 <- pretty(e0, "GRID")
e2 <- pretty(e0, "GRID", add = 2)
e3 <- pretty(e2, "GRID", add = 0, mar = c(1,2,3,4))
# additional strips of gridcells at
# bottom (1), left (2), top (3), and right (4), black
plot(floragrid(e3, resolution = "GRID"),
border = "white", col = "black")
# pretty spacing of extent plus 2 "rings" of encompassing cells, red
plot(floragrid(e2, resolution = "GRID"),
border = "red", col = "white", add = TRUE)
# pretty spacing of extent, green
plot(floragrid(e1, resolution = "GRID"),
border = "green", col = "gray", add = TRUE)
# initial (input) extent, blue
plot(extent2polygon(e0),
border = "blue", lwd = 2, add = TRUE)
# add axes to plot
axis(1)
axis(2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.