FormatPlot: Apply some standard formatting to a ggplot object.

Description Usage Arguments Value

View source: R/utils.R

Description

Apply some standard formatting to a ggplot object.

Usage

1
2
FormatPlot(p, spring, spring.name, field.seasons, sample.sizes, plot.title,
  sub.title, x.lab, y.lab, rotate.x.labs, ymax, ymin, xmax, xmin)

Arguments

p

A ggplot object.

spring

The spring code.

spring.name

The spring name.

field.seasons

Either a single field season name, or a vector of field season names.

sample.sizes

Optional dataframe with columns SpringCode, FieldSeason, NTransects (i.e. sample size).

plot.title

The title of the plot.

sub.title

Optional custom plot subtitle.

x.lab

X axis label.

y.lab

Y axis label.

rotate.x.labs

Boolean indicating whether to rotate x axis labels 90 degrees.

ymax

Optional maximum y limit.

ymin

Optional minimum y limit.

xmax

Optional maximum x limit.

xmin

Optional minimum x limit.

Value

A ggplot object.


nationalparkservice/mojn-sv-rpackage documentation built on Oct. 29, 2021, 7:13 p.m.