powered by
This function plots pairs of traits against each other to visualize the correlations between traits.
plot_pheno_cor( data_obj, pheno_which = NULL, color_by = NULL, group_labels = NULL, text_cex = 1, pheno_labels = NULL, pt_cex = 1 )
a Cape object
Cape
A vector of trait names to plot. The default is to plot all traits.
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.
pheno2covar
A vector of names for the legend indicating the groups for the colored dots.
A numeric value indicating the size of the text
A vector of names for traits to appear in the plot in case the column names are not very pretty.
A numeric value indicating the size of the points.
if (FALSE) { plot_pheno_cor(data_obj, color_by = "sex", group_labels = c("Female", "Male")) }
Run the code above in your browser using DataLab