DensityDiffView {MAGeCKFlute} | R Documentation

## Density plot

### Description

Plot the density of beta score deviations.

### Usage

    DensityDiffView(
      beta,
      ctrlname = "Control",
      treatname = "Treatment",
      main = NULL,
      filename = NULL,
      width = 5,
      height = 4,
      ...
    )

### Arguments

`beta` | Data frame, including `ctrlname` and `treatname` as columns.
`ctrlname` | A character, specifying the name of control sample.
`treatname` | A character, specifying the name of treatment sample.
`main` | As in 'plot'.
`filename` | Figure file name to create on disk. Default filename="NULL", which means no output.
`width` | As in ggsave.
`height` | As in ggsave.
`...` | Other parameters in ggsave.

### Value

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

### Author(s)

Wubing Zhang

### Examples

    file3 = file.path(system.file("extdata", package = "MAGeCKFlute"),
    "testdata/mle.gene_summary.txt")
    dd = ReadBeta(file3)
    # Density plot of beta score deviation between control and treatment
    DensityDiffView(dd, ctrlname = "dmso", treatname = "plx")

[Package MAGeCKFlute version 1.12.0 Index]