Description Usage Arguments Value See Also Examples
Click into a plot to get the location or identify values
1 2 3 4 5 6 7 8 9 |
samples |
[ |
panel |
[ |
identify |
[ |
snap |
[ |
raw |
[ |
show |
[ |
... |
[ |
A tibble of the selected locations and, if identify
= TRUE, the respective values. If show = TRUE the values are also
shown in the plot.
Other geometry tools:
gt_filter(),
gt_pull(),
gt_reflect(),
gt_rotate(),
gt_scale(),
gt_skew(),
gt_stretch(),
gt_translate()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | if(dev.interactive()){
# locate coordinates with geoms
visualise(geom = gtGeoms$polygon)
gt_locate(samples = 2)
# locate or identify values with rasters
visualise(raster = gtRasters$continuous)
gt_locate(identify = TRUE, snap = TRUE)
# with several panels, specify a target
visualise(gtRasters)
gt_locate(samples = 4, panel = "categorical",
snap = TRUE, identify = TRUE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.