ViolinView {MAGeCKFlute} | R Documentation

## Violin plot

### Description

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

### Usage

    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

    data(mle.gene_summary)
    # Read beta score from gene summary table in MAGeCK MLE results
    dd = ReadBeta(mle.gene_summary)
    ViolinView(dd, samples=c("dmso", "plx"))
    #or
    ViolinView(dd[, c("dmso", "plx")])

[Package MAGeCKFlute version 1.4.3 Index]