sgRankView | R Documentation |
View sgRNA rank.
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,
...
)
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'. |
An object created by ggplot
.
Yihan Xiao
file2 = file.path(system.file("extdata", package = "MAGeCKFlute"),
"testdata/rra.sgrna_summary.txt")
sgrra = ReadsgRRA(file2)
sgRankView(sgrra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.