plot_pheno_cor: Plot trait pairs against each other

View source: R/plot_pheno_cor.R

plot_pheno_corR Documentation

Plot trait pairs against each other

Description

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

Usage

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.


cape documentation built on May 29, 2024, 5:11 a.m.