longitude | R Documentation |
function to plot cool latitude and longitude. labels for latitude range from 180ºW to 0 to 180ºE and longitude from 90ºS to 0 to 90ºN.
longitude(int = 10, side = 1, lmin = -180, lmax = 180, ...)
latitude(int = 10, side = 2, lmin = -90, lmax = 90, ...)
longitude_proj(r, int = 10, side = 1, lmin = -180, lmax = 180, ...)
latitude_proj(r, int = 10, side = 2, lmin = -80, lmax = 80, ...)
grid_proj(
r,
int = 10,
lty = 3,
col = "#666666",
lat_min = -80,
lat_max = 80,
lon_min = -160,
lon_max = 160,
...
)
int |
interval in degrees |
side |
side to plot, see axis |
lmin |
minimum lat or lon |
lmax |
maximum lat or lon |
... |
additional arguments passed to axis function |
r |
a raster object (to projected versions) |
lty |
line type for grid_projected (default is 3) |
col |
line color for grid_projected (default is gray) |
lat_min |
for rid_projected (default is -80) |
lat_max |
for rid_projected (default is 30) |
lon_min |
for rid_projected (default is -160) |
lon_max |
for rid_projected (default is 160) |
longitude()
: nice latitude axis
latitude()
: nice longitude axis
longitude_proj()
: projected longitude axis
latitude_proj()
: projected latitude axis
grid_proj()
: grid (lalitude and longitude) in a different projection
library(raster)
br <- shapefile(paste0(system.file("extdata",package="hackWRF"),"/BR_states.shp"),verbose=FALSE)
plot(br)
box()
latitude()
longitude()
grid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.