Description Usage Arguments Author(s) Examples
Plot methods for 3D visulisation of spatial data with and without attributes on top of a map.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | spplot3d.points(obj, att = NULL, col = "red",
height = 0.5, ADD = FALSE,
type = c("osm", "osm-bw", "maptoolkit-topo", "waze", "mapquest", "mapquest-aerial",
"bing", "stamen-toner", "stamen-terrain", "stamen-watercolor", "osm-german",
"osm-wanderreitkarte", "mapbox", "esri", "esri-topo", "nps", "apple-iphoto", "skobbler",
"cloudmade-<id>", "hillshade", "opencyclemap", "osm-transport", "osm-public-transport",
"osm-bbike", "osm-bbike-german"),
minNumTiles = 10, CRS = NULL, radius = 1, grid = FALSE,
col_grid = "black", col_axes = "white", open3d = TRUE,
...)
spplot3d.polygons(obj, att = NULL, col = "brown2",
height = 0.2, ADD = FALSE,
type = c("osm", "osm-bw", "maptoolkit-topo", "waze", "mapquest", "mapquest-aerial",
"bing", "stamen-toner", "stamen-terrain", "stamen-watercolor", "osm-german",
"osm-wanderreitkarte", "mapbox", "esri", "esri-topo", "nps", "apple-iphoto", "skobbler",
"cloudmade-<id>", "hillshade", "opencyclemap", "osm-transport", "osm-public-transport",
"osm-bbike", "osm-bbike-german"),
minNumTiles = 10, CRS = NULL, grid = FALSE,
col_grid = "black", col_axes = "white", open3d = TRUE,
...)
spplot3d.grid(obj, att = NULL, col = "red", height = 0.2,
alpha = 0.5, ADD = FALSE,
type = c("osm", "osm-bw", "maptoolkit-topo", "waze", "mapquest", "mapquest-aerial",
"bing", "stamen-toner", "stamen-terrain", "stamen-watercolor", "osm-german",
"osm-wanderreitkarte", "mapbox", "esri", "esri-topo", "nps", "apple-iphoto", "skobbler",
"cloudmade-<id>", "hillshade", "opencyclemap", "osm-transport", "osm-public-transport",
"osm-bbike", "osm-bbike-german"),
minNumTiles = 10, CRS = NULL, radius = 1.2,
grid = FALSE, col_grid = "black", col_axes = "white",
open3d = TRUE, ...)
spplot3d.lines(obj, att = NULL, col = "red",
height = 0.2, ADD = FALSE,
type = c("osm", "osm-bw", "maptoolkit-topo", "waze", "mapquest", "mapquest-aerial",
"bing", "stamen-toner", "stamen-terrain", "stamen-watercolor", "osm-german",
"osm-wanderreitkarte", "mapbox", "esri", "esri-topo", "nps", "apple-iphoto", "skobbler",
"cloudmade-<id>", "hillshade", "opencyclemap", "osm-transport", "osm-public-transport",
"osm-bbike", "osm-bbike-german"),
minNumTiles = 10, CRS = NULL, grid = FALSE,
col_grid = "black", col_axes = "white", open3d = TRUE,
...)
|
obj |
spatial object as defined in
|
att |
String, name of the attribute that should be plotted. |
col |
vector with one or more colors. If a numeric attribute is chosen the function will interpolate the colors and create a new color palette which is used to color the objects. If no attribute is chosen objects will be colored according to the color vector. |
height |
height of the spatial objects above the map. |
ADD |
logical, if TRUE CRS must be specified and 'obj' will be added to an existing plot. |
type |
the tile server from which to get the map. |
minNumTiles |
higher numbers increase map detail and resolution, but also the time to load the map. |
CRS |
coordinate reference system, for details see
|
radius |
radius of |
grid |
logical, specifying if a grid should be plotted on the map. |
col_grid |
color of the grid. |
col_axes |
color of the axes and labels. |
alpha |
vector of alpha values between 0.0 (fully transparent) .. 1.0 (opaque). |
open3d |
ignore, only needed for snapshot creation for the vignette. |
... |
passes arguments to |
Nikolai Gorte <n.gorte@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | crs = CRS("+init=epsg:28992 +proj=sterea +lat_0=52.15616055555555
+lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel
+towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +units=m +no_defs")
## SpatialPointsDataFrame
data("meuse")
coordinates(meuse) <- ~x+y
proj4string(meuse) <- crs
spplot3d(meuse, att = "zinc", CRS = CRS("+init=EPSG:4326"))
spplot3d(meuse, att = "ffreq", type="bing", grid=TRUE)
## Not run:
## SpatialGridDataFrame
data("meuse.grid")
coordinates(meuse.grid) <- ~x+y
gridded(meuse.grid) <- TRUE
proj4string(meuse.grid) <- crs
spplot3d(meuse.grid, att = "dist", CRS = CRS("+init=EPSG:4326"))
## using map with high resolution
spplot3d(meuse.grid, att = "ffreq", alpha=0.3, minNumTiles = 30)
## SpatialLinesDataFrame
data("gewaesserlinien")
spplot3d(gewaesserlinien, "glName", col = c("blue", "cyan"))
## SpatiaPolygonsDataFrame
data("vg2500_bld")
spplot3d(vg2500_bld, "SHAPE_AREA", CRS = CRS("+init=EPSG:4326"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.