residual_plot: Title Residual Plot

View source: R/Plots.R

residual_plotR Documentation

Title Residual Plot

Description

Title Residual Plot

Usage

residual_plot(pheno, covariates_string, traits)

Arguments

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.

Value

residual plot

Examples

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)

nkurniansyah/Olivia documentation built on July 29, 2023, 9:10 a.m.