This function is deprecated.
Please use slideview::slideView
instead.
# 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(...)
a RasterStack/Brick, RasterLayer or path to a .png file
a RasterStack/Brick, RasterLayer or path to a .png file
slider label for img1 (defaults to object name)
slider label for img2 (defaults to object name)
integer. Index of the Red channel, between 1 and nlayers(x)
integer. Index of the Green channel, between 1 and nlayers(x)
integer. Index of the Blue channel, between 1 and nlayers(x)
the color to be used for NA pixels
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.
whether to plot legends for the two images (ignored for RatserStacks/*Bricks).
color (palette).See levelplot
for details.
the color palette to be used for visualising RasterLayers
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
Compare two images trough interactive swiping overlay