| geo_skew | R Documentation |
Skew geometric objects by a shear factor in x and y dimension.
geo_skew(obj, x = NULL, y = NULL, fid = NULL, update = TRUE)
obj |
gridded(1) |
x |
numeric(1) |
y |
numeric(1) |
fid |
integerish(.) |
update |
logical(1) |
geom of the skewed obj.
Other geometry tools:
geo_filter(),
geo_locate(),
geo_pull(),
geo_reflect(),
geo_rotate(),
geo_scale(),
geo_stretch(),
geo_translate()
# skew several features
geo_vis(gtGeoms$polygon, linewidth = 3)
newPoly <- geo_skew(obj = gtGeoms$polygon, x = 0.5, update = FALSE)
geo_vis(geom = newPoly, linecol = "green", new = FALSE)
# skew a single feature
geo_vis(gtGeoms$polygon, linewidth = 3)
newPoly <- geo_skew(obj = gtGeoms$polygon, x = 0.5, y = .7, fid = 2,
update = FALSE)
geo_vis(newPoly, linecol = "green", new = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.