Description Usage Arguments Details Value Examples
View source: R/waterfallplot.R
Given a sample changepoint data frame, will plot all samples zscores from that data.
1 |
x |
A data frame containing samples as rows followed by zscores and estimated sample_groups to be plotted. |
This function expects the output from cptSamples function of SISPA package, and highlights the sample profile of interest in the changepoint 1 with orange filled bars.
Bar plot pdf illustrating distinct SISPA sample profiles.
1 2 3 4 5 6 | samples <- c("s1","s2","s3","s4","s5","s6","s7","s8","s9","s10")
zscores <- c(3.83,2.70,2.67,2.31,1.70,1.25,-0.42,-1.01,-2.43,-3.37)
changepoints <- c(1,1,1,2,2,3,3,NA,NA,NA)
sample_groups <- c(1,1,1,0,0,0,0,0,0,0)
my.data = data.frame(samples,zscores,changepoints,sample_groups)
waterfallplot(my.data)
|
Loading required package: genefilter
Loading required package: GSVA
Loading required package: changepoint
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Successfully loaded changepoint package version 2.2.2
NOTE: Predefined penalty values changed in version 2.2. Previous penalty values with a postfix 1 i.e. SIC1 are now without i.e. SIC and previous penalties without a postfix i.e. SIC are now with a postfix 0 i.e. SIC0. See NEWS and help files for further details.
Warning: Ignoring unknown aesthetics: x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.