plot.ccm_sample: Methods for ccm_sample Objects

View source: R/CCMnet_Sample_methods.R

plot.ccm_sampleR Documentation

Methods for ccm_sample Objects

Description

Printing, summarizing, and plotting methods for results generated by sample_ccm.

Usage

## S3 method for class 'ccm_sample'
plot(
  x,
  stats = NULL,
  type = c("density", "hist", "trace"),
  include_theoretical = FALSE,
  ...
)

## S3 method for class 'ccm_sample'
print(x, ...)

## S3 method for class 'ccm_sample'
summary(object, ...)

Arguments

x, object

An object of class ccm_sample.

stats

Character vector of statistic names to plot. If NULL, all targeted statistics are plotted.

type

Character string specifying the plot type: "density", "hist", or "trace".

include_theoretical

Logical. If TRUE, overlays the theoretical target distribution (requires running sample_theoretical first).

...

Additional arguments passed to methods.

Details

For type = "trace", setting include_theoretical = TRUE adds a red dashed line for the theoretical mean and red dotted lines for the 2.5% and 97.5% quantiles.


CCMnet documentation built on March 2, 2026, 9:06 a.m.