Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

ForestElementsR (version 2.0.1)

plot.fe_ccircle_spatial: Plot an fe_ccircle_spatial Object

Description

Plot an fe_ccircle_spatial Object

Usage

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

Value

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

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

Examples

Run this code
 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)

Run the code above in your browser using DataLab