Learn R Programming

easynem (version 1.0.3)

nem_plot,funguild2-method: Visualizing nematode functional guild data (two-factor)

Description

The nem_plot function is generalized to the funguild2-class and is used to visualize the nematode functional guild data.

Usage

# S4 method for funguild2
nem_plot(object)

Value

An gg or ggplot object.

Arguments

object

A funguild2-class object.

Details

To facilitate code interpretation, it is recommended to use the pipe symbol |> to connect functions:

nem_plot <- nem |> calc_nemindex() |> calc_funguild2(con_crop, season) |> nem_plot()

See Also

The nem_plot() is used to visualize the calculation results and is a generalized function for multiple classes including beta-class, beta2-class, compare-class, compare2-class, ef-class, ef2-class, funguild-class, funguild2-class, mf-class, mf2-class, ter-class, ter2-class, etc.

Examples

Run this code
nem <- read_nem(tab = easynem_example("nemtab1.csv"),
                tax = easynem_example("nemtax1.csv"),
                meta = easynem_example("nemmeta1.csv"))
nem_plot <- nem |>
            calc_nemindex() |>
            calc_funguild2(con_crop, season) |>
            nem_plot()
nem_plot

Run the code above in your browser using DataLab