View source: R/print_patterns.R
print_patterns | R Documentation |
print_patterns
is a (very) rough function to print a matrix of patterns in a PCA-style plot.
print_patterns(pats, colgroups = NULL, n = 1:6, pat_type = "pat", title = "")
pats |
A matrix of patterns where each pattern is in a different column. |
colgroups |
An optional dataframe with the column names for |
n |
The number of patterns to print. By default, |
pat_type |
An optional character specifying the prefix for pattern names. By default, |
title |
The title for the plot. By default, |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.