catTrajectory: Creates a list of data frames. The first item in the list is...

Description Usage Arguments Value Examples

View source: R/catTrajectory.R

Description

Creates a list of data frames. The first item in the list is the data frame containing the trajectories for creating the map of change.The second data frame contains the data for creating the stacked bars.

Usage

1
catTrajectory(dfRaster, noData = 0, category = 1)

Arguments

dfRaster

A data frame from a stack or brick of at least 2 raster files.

noData

A number representing no data. The default 0.

category

A number representing the category of interest. The default 1.

Value

A list of dataframes. The first item in the list is the data frame containing the trajectories for creating the map of chnchangeThe second data frame contains the data for creating the stacked bars.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
ras <- brick(system.file("external/datarasterutm.tif", package="timeComponents"))

## End(Not run)

## Not run: 
df <- as.data.frame(ras, xy = TRUE)

## End(Not run)

## Not run: catTrajectory(dfRaster = df,noData = 0, category = 1)

bilintoh/timecomptest documentation built on Dec. 19, 2021, 9:42 a.m.