Learn R Programming

bootcluster (version 0.4.2)

plot_moc_grid: Create a Grid Plot of MOC Results

Description

Creates a grid plot with datasets as rows and clustering methods as columns. This function is designed to visualize multiple datasets and methods in a single plot.

Usage

plot_moc_grid(
  results,
  dataset_names = NULL,
  methods = c("kmeans", "hierarchical", "spectral", "fastgreedy", "metis", "hmetis"),
  plot_file = NULL,
  format = "pdf",
  mar = c(2, 2, 2, 1),
  cex = 0.7,
  point_size = 0.8,
  family = "serif",
  label_style = TRUE,
  maintain_aspect_ratio = TRUE
)

Value

Invisibly returns the layout information

Arguments

results

Results from analyze_moc_datasets

dataset_names

Names of datasets to plot (default: all datasets in results)

methods

Methods to plot (default: all available methods)

plot_file

Output file for plots (default: NULL)

format

Output format, either "pdf" or "eps" (default: "pdf")

mar

Margins for plots (default: c(2, 2, 2, 1))

cex

Text size multiplier (default: 0.7)

point_size

Point size for scatter plots (default: 0.8)

family

Font family (default: "serif" for Times New Roman)

label_style

Whether to add row/column labels (default: TRUE)

maintain_aspect_ratio

Whether to maintain aspect ratio in PDF (default: TRUE)