Closed kevinsorochan closed 3 years ago
Can you send me a sample of your data so I can try to reproduce the error locally? an RData file of what you are attempting to plot (taxa_conc_n argument?) would be perfect.
There is a column name issue, but it was not conc_m3, rather 'pressure' (it should be depth).
Issue now solved.
The concentration plots were relying on 'pressure' which was not a variable in the dataframe taxa_conc_n
All plots in vpr_plot_profile now rely on 'depth' (not pressure)
I also added a stop so if you attempt to plot a dataframe without a 'depth' variable you will get an error reminding you it is required. This should hopefully prevent similar issues in the future.
The function vpr_plot_profile() is not working properly when the argument plot_conc = T. I think there is an issue with the column name for the plankton concentration variable: it should now be conc_m3. Also the y axis should be labelled as 'depth' rather than 'pressure'.