Learn R Programming

RPPanalyzer (version 1.2.2)

rppa2boxplot: Draws boxplots of groups of an RPPA data set including wilcox or kruskal test.

Description

Draws boxplots of groups of an RPPA data set and compares the expression values to a reference group (control) if provided (wilcox.test). Otherwise a test on general differences is performed (kruskal.test). Additionally a grouping order for plotting can be provided here.

Usage

rppa2boxplot(x, param, control=NULL, orderGrp=NULL, file = "boxplot_groups.pdf")

Arguments

x
List with RPPA data with aggregated replicate spots
param
Character value of one of the columns of the sampledescription matrix, i.e. x[[4]], describing the phenodata that should be analyzed
control
Character value of one of the columns of the sampledescription matrix, i.e. x[[4]], describing the sample group of param that serves as reference in the wilcoxon test. In case of NULL (default) the general kruskal.test is performed instead.
orderGrp
defines the ordering of the subgroups in param, i.e. vector of specifically ordered values of param
file
Title of the file that will be exported.

Value

  • Generates a PDF file

Examples

Run this code
library(RPPanalyzer)
	
data(dataIII)
dataIII_median <- sample.median(dataIII)
rppa2boxplot(x=dataIII_median, param="rank", control="vx",
	orderGrp=c("vx","zx","yzr","rxi"), file="wilcoxonBoxplot.pdf")
rppa2boxplot(x=dataIII_median, param="rank", control=NULL,
	orderGrp=c("vx","zx","yzr","rxi"), file="kruskalBoxplot.pdf")

Run the code above in your browser using DataLab