view_crs | R Documentation |
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.
view_crs(crs)
crs |
A character string representing the EPSG code of an input coordinate reference system, possibly returned by |
an object of class mapview
which uses the mapview package to preview the extent of a coordinate reference system.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.