geo_vis | R Documentation |
Visualise geometric objects
geo_vis(
...,
window = NULL,
trace = FALSE,
new = TRUE,
clip = TRUE,
theme = geoTheme
)
... |
objects to plot and optional graphical parameters. |
window |
data.frame(2) |
trace |
logical(1) |
new |
logical(1) |
clip |
logical(1) |
theme |
geometr theme |
Returns invisibly an object of class recordedplot
, see
recordPlot
for details (and warnings).
# make an empty plot
geo_vis()
geo_vis(window = getExtent(gtGeoms$grid))
coords <- data.frame(x = c(30, 60, 60, 40),
y = c(40, 40, 60, 70),
fid = 1)
(aGeom <- gs_polygon(anchor = coords))
geo_vis(aGeom)
win <- data.frame(x = c(0, 80),
y = c(0, 80))
withWindow <- geomio::setWindow(x = aGeom, to = win)
geo_vis(expanded = withWindow)
(aRaster <- gtGeoms$grid)
# plot several objects together ...
geo_vis(aRaster, aGeom)
# ... and give them names
geo_vis(`a raster` = aRaster, `a geom` = aGeom)
# use graphical parameters ...
geo_vis(aGeom, linecol = "green")
# ... or a theme
geo_vis(aRaster, theme = geo_theme(title = list(plot = FALSE)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.