tsChipsRGB: Plot TS Chips (RGB version)

Description Usage Arguments Details Value Author(s) References

Description

Plot image TS chips from 3 raster bricks (as RGB composites) based on a location, area buffer, and time buffer

Usage

1
2
3
4
tsChipsRGB(xr, xg, xb, loc, start = NULL, end = NULL, buff = 17,
  percNA = 20, nc = 3, nr = 3, plot = FALSE, exportChips = FALSE,
  exportZoo = FALSE, textcol = "white", plotlabs = c("red", "green",
  "blue"), ...)

Arguments

loc

Location. Can be a vector of length 2 representing the x,y coordinates, or a SpatialPolygons or SpatialPoints object of nrow = 1 (the first row will be taken if nrow(loc) > 1), or an extent object (which will be extended if a buffer > 0 is given; see below)

start

Date. OptionaL: earliest date ("yyyy-dd-mm") to display.

end

Date. Optional: latest date ("yyyy-dd-mm") to display.

buff

Numeric. Number of pixels to buffer the location in all directions. A higher buffer will essentially zoom out.

percNA

Numeric. Maximum allowable % NA in the cropped image chips

plot

Logical. Plot individual band time series?

exportChips

Logical. Export processed chips to workspace as a list of rasterBricks (R, G, B)?

exportZoo

Logical. Export pixel time series as zoo objects?

textcol

Character. Colour of text showing image date (can also be hexadecimal)

plotlabs

Character. Vector of length 3 indicating the labels for each of the zoo plots (if plot=TRUE)

...

Arguments to be passed to plotRGB

xr/xg/xb

RasterBrick. Image time series bricks representing the red, green and blue channel, respectively

nc/nr

Numeric. Number of columns and rows to plot, respectively. If the number of layers is greater than nc*nr, a screen prompt will lead to the next series of plots. These cannot exceed 4.

show

Logical. Show image chips? Set to FALSE if you just want to export them to rasterBricks and/or export the ggplot object without viewing the chips.

Details

see http://bendv.github.io/timeSyncR/ for a short tutorial on tsChipsRGB

Value

NULL if exportZoo = FALSE and exportChips = FALSE or a list of zoo time series objects if exportZoo = TRUE, or a list of subsetted and cropped rasterBricks if exportChips = TRUE, with the side effect of time series chips being plotted in all cases. If both exportChips and exportZoo are TRUE, a list consisting both lists will be returned.

Author(s)

Ben DeVries

References

Cohen, W. B., Yang, Z., Kennedy, R. (2010). Detecting trends in forest disturbance and recovery using yearly Landsat time series: 2. TimeSync - Tools for calibration and validation. Remote Sensing of Environment, 114(12), 2911-2924.


bendv/timeSyncR documentation built on May 12, 2019, 10:58 a.m.