stackedBars: Create a stacked bar chart of means bounded below by zero.

Description Usage Arguments Details Value Author(s) See Also

View source: R/stackedBars.R

Description

Create a stacked bar chart of means bounded below by zero.

Usage

1
stackedBars(df, fileSave, title, xlab, ylab, dir, height, width, text = 11)

Arguments

df

A data.frame containing columns for FlowerType, Variety, b0, lo2.5, and hi97.5, Captured, and Observed. Typically the output from function getPoissonMeans.

fileSave

A character string used to name the plot file.

title

A character string used to entitle the plot.

xlab

A character string used to label the x-axis.

ylab

A character string used to label the y-axis.

dir

A character string used to identify the directory into which output is to be saved. The directory should have a trailing slash "/."

height

A number indicating the height of the resulting png, in inches.

width

A number indicating the width of the resulting png, in inches.

text

The size of the output font. Larger means bigger. Default is 11.

Details

This function creates a png via ggplot2.

Value

A ggplot2-styled stacked bar chart, with bars oriented horizontally.

Author(s)

Jason Mitchell

See Also

ggplot2::ggplot and friends, forcats.


studyvin/pollinatorAttractiveness documentation built on Dec. 23, 2021, 6:38 a.m.