fishR-Core-Team / FSA

FSA (Fisheries Stock Assessment) package provides R functions to conduct typical introductory fisheries analyses.
https://fishr-core-team.github.io/FSA/
GNU General Public License v2.0
65 stars 20 forks source link

Small bug in hist.formula function #62

Closed carlostorrescubila closed 3 years ago

carlostorrescubila commented 3 years ago

The parameter freq sometimes does not work. When you set it FALSE it works on plot, but the y-scale does not change and you can't see the bars. Probably it happends because you take always the counts value of hist.default and you have to take density values when freq = FALSE.

droglenc commented 3 years ago

Thanks, @carlostorrescubila ... I will try to fix this.

Note to self ... here is the issue ... compare these two outpus

hist(Sepal.Length~Species,data=iris)
hist(Sepal.Length~Species,data=iris,freq=FALSE)
droglenc commented 3 years ago

@carlostorrescubila ... this should be fixed in the development version. Let me know if you still have issues. Thanks again.