Learn R Programming

easynem (version 1.0.3)

nem_plot,mf-method: Visualizing the metabolic footprint of nematode communities (single factor)

Description

The nem_plot function is generalized to the mf-class and is used to visualize the metabolic footprint of nematode communities. Metabolic footprints quantify the amplitude of Carbon utilisation by different food web components. The point in the middle of a rhombus represents the intersection of EI and SI and length of vertical and horizontal axes of the rhombus corresponds to the footprints of enrichment and structure components respectively.

Usage

# S4 method for mf
nem_plot(object, kei = 1, ksi = 1)

Value

An gg or ggplot object.

Arguments

object

A mf-class object.

kei

Adjust the width of the diamond, default kei = 1.

ksi

Adjust the length of the diamond, default ksi = 1.

Details

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

nem_plot <- nem |> calc_nemindex() |> calc_mf(Treatments) |> nem_plot()

References

  • https://shiny.wur.nl/ninja/

  • Ferris, Howard. "Form and function: metabolic footprints of nematodes in the soil food web." European Journal of Soil Biology 46.2 (2010): 97-104.

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_nem2(tab = nemtab, tax = nemtax, meta = nemmeta)
nem_plot <- nem |>
            calc_nemindex() |>
            calc_mf(Treatments) |>
            nem_plot(kei = 30, ksi = 20)
nem_plot

Run the code above in your browser using DataLab