| plot_geom | R Documentation |
plot_geom() plots one or more geometries given as either WKT or WKB raw
vectors, using wk::wk_plot().
plot_geom(x, xlab = "x", ylab = "y", main = "", ...)
x |
Either a character vector containing one or more WKT strings, a raw vector of WKB, or a list of WKB raw vectors. |
xlab |
Title for the x axis. |
ylab |
Title for the y axis. |
main |
The main title (on top). |
... |
Optional arguments passed to |
The input, invisibly.
# a Delaunay triangulation of 10 random points
set.seed(4)
x <- sample.int(100, 10)
y <- sample.int(100, 10)
g <- g_create("MULTIPOINT", cbind(x, y))
g_wk2wk(g)
plot_geom(g)
g2 <- g_delaunay_triangulation(g)
g_wk2wk(g2)
plot_geom(g2, add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.