View source: R/plotComponentResult.R
plotComponentResult | R Documentation |
Visualizes GA-detected simplivariate components on the original matrix as outlined cells, colored by pattern type.
plotComponentResult(
df,
string,
componentPatterns,
componentScores,
scoreCutoff = 0,
showAxisLabels = TRUE,
showComponentLabels = TRUE,
title = "Detected Components",
rearrange = FALSE,
grayscale = TRUE
)
df |
Original data matrix |
string |
Best GA string (vector of length nrow(df) + ncol(df); rows first, then cols) |
componentPatterns |
Vector of component types (from fitness(..., returnPatterns = TRUE)) |
componentScores |
Vector of fitness scores per component |
scoreCutoff |
Minimum score a component must have to be shown (default: 0 = show all) |
showAxisLabels |
Logical: show axis tick labels (default: TRUE) |
showComponentLabels |
Logical: show component labels inside clusters (default: TRUE) |
title |
Title for the plot (default: "Detected Components") |
rearrange |
Logical: reorder rows and columns to group components (default: FALSE) |
grayscale |
Logical: use grayscale for heatmap background (default: TRUE) |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.