MapRatesView {MAGeCKFlute} | R Documentation |
View mapping ratio of each sample
MapRatesView(countSummary, Label = "Label", Reads = "Reads", Mapped = "Mapped", filename = NULL, width = 5, height = 4, ...)
countSummary |
A data frame, which contains columns of 'Label', 'Reads', and 'Mapped' |
Label |
A character, indicating column (in countSummary) of sample names. |
Reads |
A character, indicating column (in countSummary) of total reads. |
Mapped |
A character, indicating column (in countSummary) of mapped reads. |
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. |
An object created by ggplot
, which can be assigned and further customized.
Wubing Zhang
countSummary = data.frame(Label = c("Day0_R1", "Day0_R2", "Day7_R1", "Day7_R2"), Reads = c(62818064, 47289074, 51190401, 58686580), Mapped = c(39992777, 31709075, 34729858, 37836392)) MapRatesView(countSummary)