Learn R Programming

ForestElementsR (version 2.0.1)

plot.fe_yield_table: Plot an fe_yield_table Object

Description

Plot an fe_yield_table Object

Usage

# S3 method for fe_yield_table
plot(x, variable = NA, ...)

Value

An object of class ggplot

Arguments

x

An object of class fe_yield_table

variable

Character, name of the variable to be plotted, default is NA, which plots the variable listed first in the fe_yield_table object's site_index_variable slot.

...

Other parameters, not used

See Also

Other yield table functions: fe_yield_table(), si_to_mai_age(), si_to_mai_max(), site_index(), stocking_level(), yield_tables_for_species, ytable_age_slice(), ytable_lookup(), ytable_max_slice()

Examples

Run this code
  fe_ytable_pine_wiedemann_moderate_1943 |> plot()
  fe_ytable_pine_wiedemann_moderate_1943 |> plot(variable = "ba_m2_ha")
  fe_ytable_pine_wiedemann_moderate_1943 |> plot(variable = "mai_m3_ha_yr")

  # Modify plot post hoc ...
  fe_ytable_pine_wiedemann_moderate_1943 |> plot(variable = "n_ha")
  # ... better to read on log scale
  fe_ytable_pine_wiedemann_moderate_1943 |> plot(variable = "n_ha") +
    ggplot2::scale_y_log10()

Run the code above in your browser using DataLab