View source: R/duncan_fish_distribution_plots.R
This function requires you to clean the input dataframe (df) to not include nas so don't forget to filter them out!
1 2 3 4 5 6 7 8 9 10 |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.