DensityView {MAGeCKFlute} | R Documentation

## Density plot for gene beta scores in Control and Treatment

### Description

Plot the density of gene beta scores in two samples.

### Usage

    DensityView(beta, samples = NULL, main = NULL, xlab = "Beta Score",
      filename = NULL, width = 5, height = 4, ...)

### Arguments

`beta` | Data frame, including `samples` as columns.
`samples` | Character, specifying sample names in `beta`.
`main` | As in 'plot'.
`xlab` | 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 ggsave.

### Value

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

### Author(s)

Wubing Zhang

### See Also

`ViolinView`

### Examples

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

[Package MAGeCKFlute version 1.4.3 Index]