rnalab_hist_plot: Plot Histograms for input data

Description Usage Arguments Value Examples

View source: R/plot.r

Description

Use ggplot2 to generate Histograms input data and display the summary statistics next to the plot.

Usage

1
rnalab_hist_plot(data, vars, nbins)

Arguments

data

Dataset to use for ggplot2 plots

vars

A list or vector of variables to plot as the x variable in individual histograms

nbins

An integer number of bins to use for all histograms

Value

A grid graphical object consisting of a ggplot2 histogram with printed summary statistics.

Examples

1
2
3
4
# Plot the distribution and summary stats for a single variable in the dnaseqs data set
rnalab_hist_plot(dnaseqs, 'length', 100)
# Plot the distribution and summary stats for multiple variables in the dnaseqs data set
rnalab_hist_plot(dnaseqs, c('length', 'yield'), 100)

batra-akshita/rnalab documentation built on March 24, 2020, 12:03 a.m.