bar_plot: bar_plot

Description Usage Arguments Details Value Examples

View source: R/plots.R

Description

barplot to compare 2 samples

Usage

1
2
3
4
5
bar_plot(plotting_data, main = "", xlab = "", ylab = "%", las = 1,
  dataset_names = colnames(plotting_data), order_numerically = FALSE,
  ordered_categories = NULL, plot_differences = FALSE,
  cex_y_axis = par("cex.axis"), cex_names = par("cex.axis"),
  col = NULL, legend = TRUE, legend_cex = 1)

Arguments

plotting_data

dataframe or vector containing numerical data

main

title

dataset_names

vector of names of the datasets in the plotting_data list, by default these are taken from the column names of the dataframe.

Details

Intended for use with chromosome and (biotype - not sure if we're using this here) data. Uses the base function barplot and passes extra parameters to it.

Value

produces a barplot and returns values generated by base function barplot.

Examples

1
2
bar_plot(chromosomes)
bar_plot(chromosomes, cex_names = 0.8, col = topo.colors(2), ylab = "% of genes", xlab = "chromosome")

laurabiggins/GOcategoryStats documentation built on Oct. 27, 2019, 11:36 a.m.