add_coords | R Documentation |
Adds one or more of the following: the coordinates from the current coordinate refrence system; coordinates in NAD83; and coordinates in Albers Equal Area. This does not change the projection of the SPDF.
add_coords(
spdf,
current.proj = TRUE,
xynames = NULL,
nad83 = FALSE,
albers = FALSE
)
spdf |
A SpatialPointsDataFrame to add the coordinates to |
current.proj |
Logical. If |
xynames |
Optional vector of two character strings to rename the coordinate variables from the current projection. Format is |
nad83 |
Logical. If |
albers |
Logical. If |
spdf
with fields added to the data frame as requested.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.