EOGrady21 / vprr

Video Plankton Recorder Data Processing
https://eogrady21.github.io/vprr/
Other
2 stars 1 forks source link

vpr_plot_profile() #22

Closed kevinsorochan closed 3 years ago

kevinsorochan commented 3 years ago

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'.

EOGrady21 commented 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.

kevinsorochan commented 3 years ago

There is a column name issue, but it was not conc_m3, rather 'pressure' (it should be depth).

EOGrady21 commented 3 years ago

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.