autoplot.biclustermd_sim {biclustermd}R Documentation

Plot similarity measures between two consecutive biclusterings.

Description

Creates a ggplot of the three similarity measures used in biclustermd::bicluster() for both row and column dimensions.

Usage

## S3 method for class 'biclustermd_sim'
autoplot(object, similarity = NULL, facet = TRUE, ncol = NULL, ...)

Arguments

object

Object of class "biclustermd_sim"

similarity

A character vector indicating which similarity measure to plot. Can be any of "Rand", "HA", "Jaccard", or "used". If "used", plot only the measure used as the stopping condition in the algorithm). By default (NULL) all three are plotted. When plotted, the used measure will have an asterisk.

facet

If TRUE (default), each similarity measure will be in its own plot. if FALSE, all three similarity measures for rows and columns are given in one plot.

ncol

If faceting, the number of columns to arrange the plots in.

...

Arguments to pass to ggplot2::geom_point()

Value

A ggplot object.

Examples

data("synthetic")

bc <- biclustermd(synthetic, col_clusters = 3, row_clusters = 2,
                miss_val = mean(synthetic, na.rm = TRUE),
                miss_val_sd = sd(synthetic, na.rm = TRUE),
                col_min_num = 2, row_min_num = 2,
                col_num_to_move = 1, row_num_to_move = 1,
                max.iter = 10)
bc
autoplot(bc$Similarities, ncol = 1)

[Package biclustermd version 0.2.3 Index]