ViolinView: Violin plot

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ViolinView.R

Description

Plots the violin of beta scores in Control and Treatment samples.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ViolinView(
  beta,
  samples = NULL,
  main = NULL,
  ylab = "Beta Score",
  filename = NULL,
  width = 5,
  height = 4,
  ...
)

Arguments

beta

Data frame, , including samples as columns.

samples

Character, specifying the name of samples to be compared.

main

As in 'plot'.

ylab

As in 'plot'.

filename

Figure file name to create on disk. Default filename="NULL", which means don't save the figure on disk.

width

As in ggsave.

height

As in ggsave.

...

Other available parameters in function 'ggsave'.

Value

An object created by ggplot, which can be assigned and further customized.

Author(s)

Wubing Zhang

See Also

DensityView

Examples

1
2
3
4
5
6
file3 = file.path(system.file("extdata", package = "MAGeCKFlute"),
"testdata/mle.gene_summary.txt")
dd = ReadBeta(file3)
ViolinView(dd, samples=c("dmso", "plx"))
#or
ViolinView(dd[, c("dmso", "plx")])

MAGeCKFlute documentation built on Nov. 8, 2020, 5:40 p.m.