mapview (version 2.7.0)

plainView: View raster objects interactively without background map but in any CRS

Description

This function is deprecated. Pleasue use plainview::plainView instead.

Usage

# S4 method for RasterLayer
plainView(x,
  maxpixels = mapviewGetOption("plainview.maxpixels"),
  col.regions = mapviewGetOption("raster.palette")(256), at,
  na.color = mapviewGetOption("na.color"), legend = TRUE,
  verbose = mapviewGetOption("verbose"),
  layer.name = deparse(substitute(x, env = parent.frame())),
  gdal = TRUE, ...)

# S4 method for RasterStackBrick plainView(x, r = 3, g = 2, b = 1, na.color = mapviewGetOption("na.color"), maxpixels = mapviewGetOption("plainview.maxpixels"), layer.name = deparse(substitute(x, env = parent.frame())), ...)

# S4 method for SpatialPixelsDataFrame plainView(x, zcol = 1, ...)

# S4 method for ANY plainview(...)

Arguments

x

a raster* object

maxpixels

integer > 0. Maximum number of cells to use for the plot. If maxpixels < ncell(x), sampleRegular is used before plotting.

col.regions

color (palette).See levelplot for details.

at

the breakpoints used for the visualisation. See levelplot for details.

na.color

color for missing values.

legend

either logical or a list specifying any of the components decribed in the colorkey section of levelplot.

verbose

should some details be printed during the process

layer.name

the name of the layer to be shown on the map

gdal

logical. If TRUE (default) gdal_translate is used to create the png file for display when possible. See details for further information.

...

additional arguments passed on to repective functions. See addRasterImage, addCircles, addPolygons, addPolylines for details

r

integer. Index of the Red channel, between 1 and nlayers(x)

g

integer. Index of the Green channel, between 1 and nlayers(x)

b

integer. Index of the Blue channel, between 1 and nlayers(x)

zcol

attribute name or column number in attribute table of the column to be rendered

Methods (by class)