.plotDist {abseqR} | R Documentation

## Bar plotter

### Description

Plots barplot for all sample in dataframes. If length(sampleNames) == 1, then the bars will also have y-values (or x if horizontal plot) labels on them. Use 'perc' to control if the values are percentages.

### Usage

    .plotDist(dataframes, sampleNames, plotTitle, vert = TRUE, xlabel = "",
      ylabel = "", perc = TRUE, subs = "", sorted = TRUE,
      cutoff = 15, legendPos = "right")

### Arguments

`dataframes` | list type. List of dataframes
`sampleNames` | vector type. 1-1 correspondence to dataframes.
`plotTitle` | string type.
`vert` | boolean type. True if the plot should be vertical
`xlabel` | string type
`ylabel` | string type
`perc` | boolean type. True if data's axis is a percentage proportion (instead of 0-1) only used if length(sampleNames) == 1
`subs` | string type
`sorted` | boolean type. True if bar plot should be sorted in descending order
`cutoff` | int type. Number of maximum ticks to show (x on vert plots, y on hori plots).
`legendPos` | string type. Where to position legend (see ggplot's theme())

### Value

ggplot2 object

[Package abseqR version 1.12.0 Index]