This is an example of how to create a stacked bar plot with percent family from a fish data set. Using this example you will be able to take a full data set and compute the family proportions just before plotting without the need to save a new dataframe.
This is dependent on the dplyr
and ggplot2
libraries.
To run it either use the RStudio IDE to run it interactively or use Rscript at the command line.
Rscript.exe stacked_barplot_example.R
"Don't Forget To Be Awesome"