LibsizeBarplot: Draw a barplot with the number of million reads per sample

Description Usage Arguments Author(s)

View source: R/libsize_barplot.R

Description

Draw a barplot with the number of million reads per sample

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
LibsizeBarplot(
  counts,
  sample.labels = colnames(counts),
  sample.colors = NULL,
  main = "Library sizes",
  xlab = "libsum (Million reads per sample)",
  cex.names = 1,
  lmargin = cex.names * max(nchar(sample.labels))/2.5 + 5,
  ...
)

Arguments

counts

a count table with 1 row per feature and 1 column per sample

...

additional parameters are passed to barplot

sample.labels=colnames(counts)

sample labels (displayed as y legend)

sample.colors=NULL

sample-specific colors (e.g. reflecting conditions)

main="Library

sizes" Main title for the plot

xlab="libsum

(Million reads per sample)" X axis label

plot.file=NULL

Path of a file to store the figure (pdf format).

fig.format="pdf"

File format (only used if plto.file is defined)

cex.names=1

fondt size for sample labels

lmargin=cex.names*max(nchar(sample.labels))/2.5+5

Adapt margin to the label sizes

width=7

width of the plot file

height=length(sample.labels)/3+2

height of the plot file (if not specified, will be adapted to the number of samples)

Author(s)

Jacques van Helden


elqumsan/RNAseqMVA documentation built on March 10, 2021, 8:10 a.m.