sgRankView {MAGeCKFlute} | R Documentation

## View sgRNA rank.

### Description

View sgRNA rank.

### Usage

    sgRankView(
      df,
      gene = NULL,
      top = 3,
      bottom = 3,
      neg_ctrl = NULL,
      binwidth = 0.3,
      interval = 0.1,
      bg.col = "gray90",
      filename = NULL,
      width = 5,
      height = 3.5,
      ...
    )

### Arguments

`df` | A data frame, which contains columns of 'sgrna', 'Gene', and 'LFC'.
`gene` | Character vector, specifying genes to be plotted.
`top` | Integer, specifying number of top genes to be plotted.
`bottom` | Integer, specifying number of bottom genes to be plotted.
`neg_ctrl` | A vector specifying negative ctrl genes.
`binwidth` | A numeric value specifying the bar width.
`interval` | A numeric value specifying the interval length between each bar.
`bg.col` | A character value specifying the background color.
`filename` | Figure file name to create on disk. Default filename="NULL", which means no output.
`width` | As in ggsave.
`height` | As in ggsave.
`...` | Other available parameters in function 'ggsave'.

### Value

An object created by `ggplot`.

### Author(s)

Yihan Xiao

### Examples

    file2 = file.path(system.file("extdata", package = "MAGeCKFlute"),
                      "testdata/rra.sgrna_summary.txt")
    sgrra = ReadsgRRA(file2)
    sgRankView(sgrra)

[Package MAGeCKFlute version 1.8.0 Index]