Plot function to plot the 3-D tracks in 2-D plane

plot2d(
  origTrack,
  simTrack = NULL,
  titleText = character(1),
  DEM = NULL,
  BG = NULL,
  padding = 0.1,
  alpha = 0.7,
  resolution = 500
)

Arguments

origTrack

a list containing data.frames with x,y,z coordinates or a data.frame

simTrack

a list containing data.frames with x,y,z coordinates or a data.frame

titleText

string with title of the plot

DEM

an object of type RasterLayer, needs overlapping extent with the line(s)

BG

an object of type RasterLayer, needs overlapping extent with the line(s)

padding

adds a pad to the 2-D space in percentage (by default set to 0.1)

alpha

a number between 0 and 1, to specify the transparency of the simulated line(s)

resolution

number of pixels the rasters are downsampled to (by default set to 500 pixels)

Value

A ggplot2 object.

Examples

plot2d(niclas)