poissonconsulting / shinyssdtools

Shiny interface to ssdtools R package
https://bcgov.github.io/shinyssdtools/
Apache License 2.0
0 stars 0 forks source link

Why is dotted line for hazard proportion not matching estimated value of 1! #35

Closed joethorley closed 1 month ago

joethorley commented 1 month ago
Screenshot 2024-09-28 at 13 51 32
joethorley commented 1 month ago

The dotted line is wrong as Elodea canadensis has a value of 1 in the data!

joethorley commented 1 month ago

is it a rounding issue?

Screenshot 2024-09-28 at 15 27 31
sebdalgarno commented 1 month ago

the offending code is here, prior to percent being passed to the plotting function

image

if I remove the rounding I get Warning: Error in ssdtools::ssd_plot: hc must match 0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08, ... or 0.99, not 0.039.

sebdalgarno commented 1 month ago

in this case the percent affected from concentration of 1 is 3.9 this is converted to proportion - 0.039 but 0.039 is not accepted by ssd_plot as needs to be rounded