print_patterns: Prints a matrix of patterns in a PCA-loadings-style plot.

View source: R/print_patterns.R

print_patternsR Documentation

Prints a matrix of patterns in a PCA-loadings-style plot.

Description

print_patterns is a (very) rough function to print a matrix of patterns in a PCA-style plot.

Usage

print_patterns(pats, colgroups = NULL, n = 1:6, pat_type = "pat", title = "")

Arguments

pats

A matrix of patterns where each pattern is in a different column.

colgroups

An optional dataframe with the column names for pats in the first column, and their grouping in the second column. By default, colgroups = NULL.

n

The number of patterns to print. By default, n = 6.

pat_type

An optional character specifying the prefix for pattern names. By default, pat_type = "pat".

title

The title for the plot. By default, title = "".

Value

A ggplot object


Columbia-PRIME/PCPhelpers documentation built on April 24, 2022, 7:57 p.m.