violin_plot: Title Violin plot

View source: R/Plots.R

violin_plotR Documentation

Title Violin plot

Description

Title Violin plot

Usage

violin_plot(pheno, strata, norm_count_matrix, selected_transcript)

Arguments

pheno

A data frame of phenotype, includes the trait and covariates

strata

Variable to stratified example: "Race"

norm_count_matrix

A matrix of gene counts (possibly normalize transformed). rows are genes, columns are individuals

selected_transcript

transcript selection example: "ENSG00000002549"

log_transform

One of the transformations log_replace_half_min, log_add_min, log_add_0.5, or NULL (default)

Value

violin plot

Examples

strata<-"Race"
data(phenotype)
data(rnaseq_count_matrix)
rnaseq_count_matrix<- rnaseq_count_matrix[rowSums(rnaseq_count_matrix)>0,]
selected_transcript<- "ENSG00000002549"
strata<-"Race"
violin_plot(pheno=phenotype, strata=strata, norm_count_matrix=rnaseq_count_matrix, selected_transcript=selected_transcript )

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