MapRatesView: View mapping ratio

Description Usage Arguments Value Author(s) Examples

View source: R/MapRatesView.R

Description

View mapping ratio of each sample

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
MapRatesView(
  countSummary,
  Label = "Label",
  Reads = "Reads",
  Mapped = "Mapped",
  filename = NULL,
  width = 5,
  height = 4,
  ...
)

Arguments

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.

Value

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

Author(s)

Wubing Zhang

Examples

1
2
3
4
file4 = file.path(system.file("extdata", package = "MAGeCKFlute"),
"testdata/countsummary.txt")
countsummary = read.delim(file4, check.names = FALSE)
MapRatesView(countsummary)

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