do_boxplots: Boxplot of color metrics across islands and habitats

Description Usage Arguments Value Author(s)

View source: R/do_boxplots.R

Description

This function makes a boxplot of a given color metric across all islands and all habitats. It can save the plot as a PDF file.

Usage

1
do_boxplots(specdata, var, filename = NULL, isJitter = F, ...)

Arguments

specdata

A data frame containing the variable to plot. It should have a column "island" and a column "habitat".

var

The name of the variable to plot, as it appears in colnames(specdata).

filename

A string. Name of the PDF file in which to save the plot. Does not save PDF if not specified. Can also be a path to the file to be created. Don't forget to add ".pdf" at the end!

isJitter

Logical. Whether to plot jittered points instead of boxplots. Good way to view outliers.

Value

A plot.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on Dec. 26, 2018, 1:15 p.m.