sgRankView: View sgRNA rank.

Description Usage Arguments Value Author(s) Examples

View source: R/sgRankView.R

Description

View sgRNA rank.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

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

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