auto_limits | R Documentation |
Find limits for a basemap
from a data frame.
auto_limits(
data,
lon = NULL,
lat = NULL,
proj.in = 4326,
proj.out = NULL,
expand.factor = NULL,
verbose = FALSE
)
data |
Data frame or a spatial object containing data for which the limits should be calculated. |
lon , lat |
Names of longitude and latitude columns in |
proj.in |
Original |
proj.out |
Resulting map projection. See |
expand.factor |
Expansion factor for map limits. Set to |
verbose |
Logical indicating whether information about the projection and guessed column names should be returned as message. Set to |
This is an internal function, which is automatically run by the basemap
function.
A list of limits and projections in proj.in
and proj.out
formats.
Mikko Vihtakari
Other customize shapefiles:
reorder_layers()
,
theme_map()
auto_limits(data = expand.grid(lon = c(-120, 180, 120),
lat = c(60, 60, 80)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.