plot_pheno_cor: Plot trait pairs against each other

Description Usage Arguments Examples

View source: R/plot_pheno_cor.R

Description

This function plots pairs of traits against each other to visualize the correlations between traits.

Usage

1
2
3
4
5
6
7
8
9
plot_pheno_cor(
  data_obj,
  pheno_which = NULL,
  color_by = NULL,
  group_labels = NULL,
  text_cex = 1,
  pheno_labels = NULL,
  pt_cex = 1
)

Arguments

data_obj

a Cape object

pheno_which

A vector of trait names to plot. The default is to plot all traits.

color_by

A character string indicating a value to color the traits by, for example sex or treatment. It must be one of the covariates. See pheno2covar.

group_labels

A vector of names for the legend indicating the groups for the colored dots.

text_cex

A numeric value indicating the size of the text

pheno_labels

A vector of names for traits to appear in the plot in case the column names are not very pretty.

pt_cex

A numeric value indicating the size of the points.

Examples

1
2
3
4
## Not run: 
plot_pheno_cor(data_obj, color_by = "sex", group_labels = c("Female", "Male"))

## End(Not run)

cape documentation built on Feb. 10, 2021, 5:06 p.m.