Description Usage Arguments Value
Apply some standard formatting to a ggplot object.
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)
|
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. |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.