plot.fe_ccircle_spatial: Plot an fe_ccircle_spatial Object

View source: R/fe_ccircle_spatial_methods.R

plot.fe_ccircle_spatialR Documentation

Plot an fe_ccircle_spatial Object

Description

Plot an fe_ccircle_spatial Object

Usage

## S3 method for class 'fe_ccircle_spatial'
plot(x, tree_filter = TRUE, dbh_scale = 1, show_labels = FALSE, ...)

Arguments

x

An fe_ccircle_spatial object

tree_filter

A data-masking expression that applies to the data.frame x$trees. It must return a logical value, and is defined in terms of the variables in x$trees. In this function, it is used internally in order to define the cohort of trees which is to be evaluated by this function (within a call to dplyr::filter()). While many meaningful filterings are conceivable, distinctions between total stand, removal stand, and remaining stand are the most probable applications. Defaults to TRUE, i.e. all trees are included. See examples.

dbh_scale

Scaling factor for plotting tree dbh in order to allow oversized representations. Defaults to 1 (correct scaling)

show_labels

Logical value. If TRUE, labels for species, dbh, R and angle are displayed.

...

Additional arguments, not used in plot.fe_ccircle_spatial

Value

A map (ggplot2) of the plot layout including the trees with coordinates

Examples

 opt_old <- getOption("fe_spec_lang") # store user's current setting
 options(fe_spec_lang = "eng")      # choose Englisch species name display
 spruce_pine_ccircle_spatial |> plot()
 spruce_pine_ccircle_spatial |> plot(dbh_scale = 4)
 spruce_pine_ccircle_spatial |>
   plot(
     dbh_scale = 4,
     tree_filter = species_id == fe_species_tum_wwk_long(30) & dbh_cm > 35
   )
 options(fe_spec_lang = opt_old)


ForestElementsR documentation built on April 3, 2025, 7:47 p.m.