View source: R/fe_stand_methods.R
plot.fe_stand | R Documentation |
Diameter distributions in number of trees per ha, one diagrame by year of survey, tree cohort to be displayed can be filtered.
## S3 method for class 'fe_stand'
plot(x, tree_filter = TRUE, ...)
x |
an |
tree_filter |
A |
... |
additional arguments, not used in |
The diagram(s) are made with ggplot2::geom_bar
, the colours for the
species, the number and width of the diameter bins correspond to the default
settings in ggplot.
A plot (ggplot2) of the diameter distribution
# display scientific species names in all examples
old_opt <- getOption("fe_spec_lang") # store current user sertting
options(fe_spec_lang = "sci") # display scientific names
# mixed mountain forest - all trees
mm_forest_1_fe_stand_spatial |> plot()
# ... remaining trees only
mm_forest_1_fe_stand_spatial |> plot(tree_filter = !removal)
# ... removal only
mm_forest_1_fe_stand_spatial |> plot(tree_filter = removal)
# ... all trees with dbh > 30 cm
mm_forest_1_fe_stand_spatial |> plot(tree_filter = dbh_cm > 20)
# other example stands
selection_forest_1_fe_stand |> plot()
norway_spruce_1_fe_stand |> plot()
spruce_beech_1_fe_stand |> plot()
# reset to previous species name settings
options(fe_spec_lang = old_opt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.