plot.param: Plot relative phytosociological parameters by taxon

View source: R/phytoparam.R

plot.paramR Documentation

Plot relative phytosociological parameters by taxon

Description

Produce a stacked bar chart of relative dominance (RDo), relative frequency (RFr), and relative density (RDe) for each taxon contained in a param object returned by phytoparam. Taxa are ordered by the Importance Value (IV).

Usage

## S3 method for class 'param'
plot(x, theme = "theme_classic", ...)

Arguments

x

An object of class param (output of phytoparam) whose $param data frame contains at least the columns Taxon, RDe, RFr, RDo, and IV.

theme

A ggplot2 theme to apply. Either a character string naming a theme constructor in ggplot2 (e.g., "theme_light", "theme_bw", "theme_minimal"), or a ggplot2 theme object. Invalid inputs fall back to ggplot2::theme_classic().

...

Ignored.

Details

The function reshapes the taxon-level table to long format and draws a horizontal stacked bar chart (RDo, RFr, RDe) with taxa ordered by increasing IV.

Value

A ggplot object.

See Also

phytoparam, summary.param, and ggplot2.

Examples

res <- phytoparam(x = quadrat.df, measure.label = "CBH", taxon = "Species",
                  dead = "Morta", family = "Family", circumference = TRUE,
                  su = "Plot", height = TRUE, su.size = 25)
plot(res)                        # default theme (theme_classic)
plot(res, theme = "theme_light") # theme by name
plot(res, theme = ggplot2::theme_minimal()) # theme object


PhytoIn documentation built on Nov. 5, 2025, 5:47 p.m.