plot_forest: Plot LandClim forest

Description Usage Arguments Author(s) See Also Examples

Description

Plots a forest based on tree data from LandClim.

Usage

1
  plot_forest(trees, species = unique(trees$species), scol = rainbow(length(species)), plotlegend = TRUE, a = 25, aspect = 1, cex = 1)

Arguments

trees

Object created by function tree_coordinates.

species

Species names, character vector.

scol

Color vector.

plotlegend

TRUE or FALSE indicating whether to plot a legend.

a

Resolution of LandClim maps used in the simulation.

aspect

Argument asp in function plot.

cex

Argument cex in function plot.

Author(s)

Klara Dolos

See Also

tree_coordinates

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
  trees <- tree_coordinates(file=system.file("fullOut_50.csv", package = "LandClimTools"), a=25)

  range(trees$col)
  stand <- trees[trees$row > 20 & trees$row <=40,]
  stand$row <- stand$row - min(stand$row)

  stand <- trees[trees$col > 20 & trees$col <=40,]
  stand$col <- stand$col - min(stand$col)

  x11(width=7, height=7)
  par(mar=c(2,2,1,1))
  plot_forest(trees=stand, species=unique(stand$species),  scol=rainbow(length(unique(stand$species))), plotlegend=TRUE, aspect=1, cex=sqrt(stand$biomass)/2)

KIT-IfGG/LandClimTools documentation built on May 8, 2019, 4:46 p.m.