view_crs {crsuggest} | R Documentation |
Quickly preview the extent of a given CRS using mapview
Description
The crsuggest package makes coordinate reference systems suggestions that may not be perfect for your specific analytic use case. Use view_crs()
to quickly view the geographic extent of a given coordinate reference system (represented by its EPSG code) and assess whether that CRS makes sense for your data.
Usage
view_crs(crs)
Arguments
crs |
A character string representing the EPSG code of an input coordinate reference system, possibly returned by |
Value
an object of class mapview
which uses the mapview package to preview the extent of a coordinate reference system.
Examples
## Not run:
library(tigris)
library(crsuggest)
options(tigris_use_cache = TRUE)
# Get a Census tract dataset from the tigris package
tarrant_tracts <- tracts("TX", "Tarrant", cb = TRUE, year = 2021)
# Suggest a CRS for your data
target_crs <- suggest_top_crs(tarrant_tracts, units = "m", inherit_gcs = FALSE)
# Preview the extent of the CRS
view_crs(target_crs)
## End(Not run)
[Package crsuggest version 0.4 Index]