Skip to contents

Generates a ggplot barplot using the nucleotide frequency counts in data.tables generated by tx_covNucFreqDT().

Usage

tx_plot_nucFreq(
  DT,
  gene,
  txRange = 1:nrow(DT),
  removeInsert = TRUE,
  show_yLabels = TRUE,
  bar_border = TRUE,
  showLegend = TRUE
)

Arguments

DT

data.table. Input data from which to generate the plot

gene

character. Name of the gene in DT which wants to be plotted.

txRange

integer. Range in data to be used, 'txcoor' column is used to delimit this range in the data.table.

removeInsert

logical. Removes counts from insert reads, which do not call for a nucleotide, are just the gap between read1 and read2.

show_yLabels

logical. If set to FALSE hides the y axis labels.

bar_border

logical. If set to FALSE removes the border of the bars.

showLegend

logical. If set to FALSE does not renger a legend.

Value

ggplot