Learn R Programming

mapview (version 2.7.8)

slideView: slideView

Description

This function is deprecated. Please use slideview::slideView instead.

Usage

# S4 method for RasterStackBrick,RasterStackBrick
slideView(
  img1,
  img2,
  label1 = deparse(substitute(img1, env = parent.frame())),
  label2 = deparse(substitute(img2, env = parent.frame())),
  r = 3,
  g = 2,
  b = 1,
  na.color = mapviewGetOption("na.color"),
  maxpixels = mapviewGetOption("plainview.maxpixels"),
  ...
)

# S4 method for RasterLayer,RasterLayer slideView( img1, img2, label1 = deparse(substitute(img1, env = parent.frame())), label2 = deparse(substitute(img2, env = parent.frame())), legend = TRUE, col.regions = mapviewGetOption("raster.palette")(256), na.color = mapviewGetOption("na.color"), maxpixels = mapviewGetOption("plainview.maxpixels") )

# S4 method for RasterStackBrick,RasterLayer slideView( img1, img2, label1 = deparse(substitute(img1, env = parent.frame())), label2 = deparse(substitute(img2, env = parent.frame())), legend = TRUE, r = 3, g = 2, b = 1, col.regions = mapviewGetOption("raster.palette")(256), na.color = mapviewGetOption("na.color"), maxpixels = mapviewGetOption("plainview.maxpixels"), ... )

# S4 method for RasterLayer,RasterStackBrick slideView( img1, img2, label1 = deparse(substitute(img1, env = parent.frame())), label2 = deparse(substitute(img2, env = parent.frame())), legend = TRUE, r = 3, g = 2, b = 1, col.regions = mapviewGetOption("raster.palette")(256), na.color = mapviewGetOption("na.color"), maxpixels = mapviewGetOption("plainview.maxpixels"), ... )

# S4 method for character,character slideView( img1, img2, label1 = deparse(substitute(img1, env = parent.frame())), label2 = deparse(substitute(img2, env = parent.frame())) )

# S4 method for ANY slideview(...)

Arguments

img1

a RasterStack/Brick, RasterLayer or path to a .png file

img2

a RasterStack/Brick, RasterLayer or path to a .png file

label1

slider label for img1 (defaults to object name)

label2

slider label for img2 (defaults to object name)

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)

na.color

the color to be used for NA pixels

maxpixels

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

...

additional arguments passed on to repective functions.

legend

whether to plot legends for the two images (ignored for RatserStacks/*Bricks).

col.regions

color (palette).See levelplot for details.

color

the color palette to be used for visualising RasterLayers

Methods (by class)

  • img1 = RasterLayer,img2 = RasterLayer: for RasterLayers

  • img1 = RasterStackBrick,img2 = RasterLayer: for RasterStackBrick, RasterLayer

  • img1 = RasterLayer,img2 = RasterStackBrick: for RasterLayer, RasterStackBrick

  • img1 = character,img2 = character: for png files

  • ANY: alias for ease of typing

Details

Compare two images trough interactive swiping overlay