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.
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
)
Invisibly returns the layout information
Results from analyze_moc_datasets
Names of datasets to plot (default: all datasets in results)
Methods to plot (default: all available methods)
Output file for plots (default: NULL)
Output format, either "pdf" or "eps" (default: "pdf")
Margins for plots (default: c(2, 2, 2, 1))
Text size multiplier (default: 0.7)
Point size for scatter plots (default: 0.8)
Font family (default: "serif" for Times New Roman)
Whether to add row/column labels (default: TRUE)
Whether to maintain aspect ratio in PDF (default: TRUE)