Provides both autoplot() and plot() methods for objects of class patternogram. These functions visualize the dissimilarity relation to distance, with optional grouping, identifiers, and confidence/uncertainty intervals if present.

# S3 method for class 'patternogram'
autoplot(object, point_size = 2, ...)

# S3 method for class 'patternogram'
plot(x, ...)

Arguments

object, x

An object of class patternogram, usually created by patternogram().

point_size

Numeric; size of the points (default 2).

...

Additional arguments passed to ggplot2::autoplot() (for autoplot.patternogram()) or forwarded to it (for plot.patternogram()).

Value

For autoplot.patternogram(), a ggplot2::ggplot object that can be further modified. For plot.patternogram(), the plot is drawn directly and invisibly returns the ggplot object.

Details

The plotting behavior adapts automatically depending on the columns available in the object:

  • If group is present, curves/points are colored by group.

  • If id is present, curves/points have different shapes by patternogram.

  • If both group and id are present, both aesthetics are used.

  • If ci_lower / ci_upper or ui_lower / ui_upper are present, shaded ribbons are drawn to show confidence or uncertainty intervals.