makeTallBars: Create a bar chart of means with 95% confidence intervals...

Description Usage Arguments Details Value Author(s) See Also

View source: R/makeTallBars.R

Description

Create a bar chart of means with 95% confidence intervals bounded below by zero.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
makeTallBars(
  df,
  fileSave,
  title,
  xlab,
  ylab,
  dir,
  height,
  width,
  hline1 = FALSE,
  hcol = "red",
  text = 11
)

Arguments

df

A data.frame containing columns for FlowerType, Variety, and b0. 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.

hline1

A logical indicating if a vertical line should be drawn where the x-axis equals one. Default is FALSE.

hcol

A character string used to identify the uniform color of all bars, when only one color is needed, typically because there is one FlowerType. Default is "red".

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 bar chart, with bars oriented horizontally.

Author(s)

Jason Mitchell, based on original work by Zoe Gustafson.

See Also

ggplot2::ggplot and friends, forcats.


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