Skip to contents

This function calculates the trajectory map, creates a cross-tabulation of land cover and administrative zones, and plots a bar chart of the trajectory data.

Usage

ques_pre_trajectory(
  lc_t1_,
  lc_t2_,
  admin_,
  lookup_traj_reclass,
  lookup_trajectory_complete,
  trajectory_column_name = "trajectory",
  convert_to_Ha = TRUE
)

Arguments

lc_t1_

A raster layer representing land cover at time 1.

lc_t2_

A raster layer representing land cover at time 2.

admin_

A raster layer representing administrative zones.

lookup_traj_reclass

A lookup table for reclassifying trajectories.

lookup_trajectory_complete

A lookup table for completing trajectories.

trajectory_column_name

The name of the trajectory column. Default is "trajectory".

convert_to_Ha

Logical. If TRUE, the pixel counts are converted to hectares. Default is TRUE.

Value

A list containing the trajectory map, the area table, and the bar plot.

Examples

if (FALSE) {
ques_pre_trajectory(lc_t1_, lc_t2_, admin_, lookup_traj_reclass, lookup_trajectory_complete)
}