Description Usage Arguments Author(s) See Also Examples
Plots a forest based on tree data from LandClim.
1 |
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. |
Klara Dolos
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.