powered by
Constructs geometries from numeric vectors.
geom_point(x, y)geom_multipoint(x, y, id = 1)geom_linestring(x, y, id = 1)geom_polygon(x, y, id = 1, ring = 1)geom_line(x, y)
geom_multipoint(x, y, id = 1)
geom_linestring(x, y, id = 1)
geom_polygon(x, y, id = 1, ring = 1)
geom_line(x, y)
an object of class rsgeo
rsgeo
a vector of x coordinates
a vector of y coordinates
the feature identifier
the id of the polygon ring
In the case of geom_line(), both x and y are vectors of rs_POINT geometries. geom_line() creates a straight line between two points.
geom_line()
x
y
rs_POINT
geom_point(3, 0.14) geom_multipoint(1:10, 10:1) geom_linestring(1:10, 10:1) geom_polygon(c(0, 1, 1, 0, 0), c(0, 0, 1, 1, 0)) x <- geom_point(0, 0) y <- geom_point(5, 0) geom_line(x, y)
Run the code above in your browser using DataLab