plot_growth: plot_growth

Description Usage Arguments Details Examples

View source: R/plot_growth.R

Description

Creates a ggplot with geom_line.

Usage

1
plot_growth(x_var, y_var)

Arguments

x_var

x variable for a geom_line plot

y_var

y variable for a geom_line plot

Details

Meant to plot the growth of a fish based on otlith analysis, but simply creates a geom_line based plot with the ototools specific frame.

Examples

1
2
3
4
5
6
7
8
9
#rm(list = ls())
x_var <- dat$julday
y_var <- dat$ring_width
p <- purrr::map2(x_var, y_var, ~plot_growth(x_var = .x, y_var = .y))
p[[1]] + ggplot2::labs(x = "Julday", y = "Ring_width")
## Not run: 
purrr::map2(p, list(c(1,2)), ~.x + ggplot2::geom_hline(yintercept = .y))

## End(Not run)

reneplonus/ototools documentation built on May 3, 2019, 4:05 p.m.