Description Usage Arguments Value See Also Examples
Skew geometric objects by a shear factor in x and y dimension.
1 |
obj |
[ |
x |
[ |
y |
[ |
fid |
[ |
update |
[ |
geom
of the skewed obj
.
Other geometry tools:
gt_filter()
,
gt_locate()
,
gt_pull()
,
gt_reflect()
,
gt_rotate()
,
gt_scale()
,
gt_stretch()
,
gt_translate()
1 2 3 4 5 6 7 8 9 10 | # skew several features
visualise(gtGeoms$polygon, linewidth = 3)
newPoly <- gt_skew(obj = gtGeoms$polygon, x = 0.5, update = FALSE)
visualise(geom = newPoly, linecol = "green", new = FALSE)
# skew a single feature
visualise(gtGeoms$polygon, linewidth = 3)
newPoly <- gt_skew(obj = gtGeoms$polygon, x = 0.5, y = .7, fid = 2,
update = FALSE)
visualise(newPoly, linecol = "green", new = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.