lettered: Create a Tukey-type bar chart with Tukey letters.

Description Usage Arguments Details Value References

View source: R/lettered.R

Description

Create a Tukey-type bar chart with Tukey letters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
lettered(
  df,
  here,
  fileSave,
  title,
  xlab,
  ylab,
  ft,
  out,
  year,
  height,
  width,
  letters = TRUE,
  bounds = FALSE,
  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.

here

A text string indicating the subfolder into which results should be saved. Also sometimes used to help entitle output.

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.

ft

A text string indicating the FlowerType of focus.

out

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

year

The year of focus. Typically one of 2017 or 2018.

height

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

width

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

letters

Default is TRUE.

bounds

Default is FALSE.

text

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

Details

Function lettered ensures that "the letters" appear above bars representing means. The letters indicate the groupings that are statistically similar. This plot emulates the example plot from Garbuzov & Ratnieks (2014).

Value

A plot with Tukey lettering, assuming letters is set to TRUE.

References

Garbuzov and Ratnieks. 2014.


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