residual_plot | R Documentation |
Title Residual Plot
residual_plot(pheno, covariates_string, traits)
pheno |
A data frame of phenotypes, includes the trait and covariates |
covariates_string |
Characters string with specifying the covariats, include "as.factor" statements. example: covariate_string = "age+as.factor(sex)" |
traits |
Trait/s, the name of the exposure variable(s). The trait/s should be a column in pheno. |
residual plot
library(ggplot2)
library(reshape2)
data(phenotype)
covariates_string<-"Age+Sex+Race"
traits<-c("Trait.1","Trait.2")
residual_plot(pheno=phenotype, covariates_string = covariates_string,traits=traits)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.