Description Usage Arguments Value Examples
Visualise geometric objects
1 2 3 4 5 6 7 8 |
... |
objects to plot and optional graphical parameters. |
window |
[ |
trace |
[ |
new |
[ |
clip |
[ |
theme |
[ |
Returns invisibly an object of class recordedplot
, see
recordPlot
for details (and warnings).
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 | # make an empty plot
visualise()
visualise(window = getExtent(gtRasters$continuous))
coords <- data.frame(x = c(30, 60, 60, 40),
y = c(40, 40, 60, 70),
fid = 1)
(aGeom <- gs_polygon(anchor = coords))
visualise(aGeom)
win <- data.frame(x = c(0, 80),
y = c(0, 80))
withWindow <- setWindow(x = aGeom, to = win)
visualise(expanded = withWindow)
(aRaster <- gtRasters$categorical)
# plot several objects together
visualise(aRaster, aGeom)
# give names
visualise(`a raster` = aRaster, `a geom` = aGeom)
# use graphical parameters ...
visualise(aGeom, linecol = "green")
# ... or a theme
visualise(aRaster, theme = setTheme(title = list(plot = FALSE)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.