-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct ignored scale for st_circle when inscribed = TRUE
- fix: correct ignored scale for st_circle when inscribed = TRUE - fix: get st_donut working with by_feature and not by_feature - refactor: switch st_donut default for by_feature to TRUE - docs: update examples for st_misc
- Loading branch information
1 parent
fb127a7
commit ac8ef31
Showing
3 changed files
with
90 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
nc <- read_sf_path(system.file("shape/nc.shp", package = "sf")) | ||
nc <- st_transform_ext(nc, crs = 3857) | ||
|
||
plot(st_scale_rotate(nc), max.plot = 1) | ||
plot(nc, max.plot = 1) | ||
plot(st_scale_rotate(nc, scale = 0.75, rotate = 15), max.plot = 1) | ||
|
||
plot(st_scale_rotate(nc, scale = 0.6, rotate = 15), max.plot = 1) | ||
plot(st_square(nc[1:10,], by_feature = TRUE), max.plot = 1) | ||
|
||
plot(st_square(nc[5,])) | ||
plot(st_circumscribed_circle(nc, by_feature = FALSE), max.plot = 1) | ||
plot(st_circle(nc, by_feature = FALSE), max.plot = 1, add = TRUE) | ||
|
||
plot(st_donut(nc[1:10,], by_feature = TRUE), max.plot = 1) | ||
|
||
plot(st_square(nc[5,], scale = 0.6, rotate = 45), col = "blue", add = TRUE) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.