pmd_plot: Generate PMD (Proportional Modular Diversity) Scatter Plot...

View source: R/pmd_plot.R

pmd_plotR Documentation

Generate PMD (Proportional Modular Diversity) Scatter Plot with Inset Legend

Description

Creates a scatter plot of Richness vs. Eveness for PMD (Proportional Modular Diversity) analysis results, including reference lines, time point labels, and an inset directional legend for polyclonal/monoclonal classification. All core logic and parameters remain identical to the original code - only namespace prefixes (::) are added.

Usage

pmd_plot(PMD_data, Timelevels = NULL)

Arguments

PMD_data

Data frame output from pmd_analysis() function (required columns: Richness, Eveness, Time)

Timelevels

Character vector (optional). Custom ordered levels for the Time factor. Default = NULL (uses natural sort)

Value

ggplot object. Combined plot (main Richness-Eveness plot + inset legend)


lisat documentation built on March 27, 2026, 5:07 p.m.