geo_locate | R Documentation |
Click into a plot to get the location or identify values
geo_locate(
samples = 1,
panel = NULL,
identify = FALSE,
snap = FALSE,
raw = FALSE,
show = TRUE,
...
)
samples |
integerish(1) |
panel |
character(1) |
identify |
logical(1) |
snap |
logical(1) |
raw |
logical(1) |
show |
logical(1) |
... |
graphical parameters of the objects that are
created when |
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:
geo_filter()
,
geo_pull()
,
geo_reflect()
,
geo_rotate()
,
geo_scale()
,
geo_skew()
,
geo_stretch()
,
geo_translate()
if(dev.interactive()){
# locate coordinates with geoms
geo_vis(geom = gtGeoms$polygon)
geo_locate(samples = 2)
# locate or identify values with rasters
geo_vis(raster = gtGeoms$grid)
geo_locate(identify = TRUE, snap = TRUE)
# with several panels, specify a target
geo_vis(gtGeoms$grid, gtGeoms$grid)
geo_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.