dunc_fish_distribution_plot: Make plots to explore distribution of fish data

Description Usage Arguments

View source: R/duncan_fish_distribution_plots.R

Description

This function requires you to clean the input dataframe (df) to not include nas so don't forget to filter them out!

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dunc_fish_distribution_plot(
  df = filter(fish_all, !is.na(Weight)),
  species = "KO",
  year = 2018,
  age = 2,
  variable = "Weight",
  ...,
  file_source = "DuncanGillnettData_2018 ages final.xlsx",
  plot = ggpubr::ggdensity
)

Arguments

df

Dataframe cleaned up with nas removed from variable of interest

species

Character value indicating fish species of interest. Defaults to KO

year

Numeric value of year of the samples. Defaults to 2018

age

Numeric value of age of the fish of interest

variable

Character value indicating which column you wish to look at. Defaults to weight

...

Not used

file_source

Name of source file where data came from. This is detailed in our database under the file_source column Defaults to the gillnet data only.

plot

Type of plot to use. Fefaults to ggdensity. Other options include ggqqplot and others from the ggpubr package


NewGraphEnvironment/duncanfunctions documentation built on Feb. 22, 2020, 1:26 a.m.