# NOT RUN {
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)
}
# }
Run the code above in your browser using DataLab