dataStack | R Documentation |
Creates results that serve as input for the stackbarPlot function.
dataStack( x, nodata = 2, category = 1, unified = "yes", timePoints = c(2000, 2001, 2002, 2003, 2005), categoryName = "marsh", regionName = "Study Region" )
x |
is the data, which must be a RasterStack,RasterBrick,SpatRaster or data frame. |
nodata |
is alphanumeric, which denotes no data in the data set. |
category |
is the category of interest. The default is set to 1. |
unified |
is a string, which can be "yes" or "no" only. If "yes," the change is a percentage of a region's unified area; else, the change is a percentage of the entire region under consideration. |
timePoints |
is a vector containing the time points under consideration.The default is c(2000, 2001, 2002, 2003, 2005). |
categoryName |
is a character representing the name of the category of interest.Default is "category" |
regionName |
is a string or character the name of the study region. |
The output from dataStack
example_data <- terra::rast(system.file("external/Example_raster_Y.tif",package="binaryTimeSeries")) no_data <- 2 cat_interest <- 1 unified_resp <- "yes" time_points <- c(2000,2001,2002,2003,2005) categ_name <- "Category" region_name <- "Study Region" datstk_output <- dataStack(x = example_data,nodata = no_data,category = cat_interest, unified = unified_resp,timePoints = time_points,categoryName = categ_name, regionName = region_name)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.