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

fitPlot() has problem with IVR when explanatory variables are reversed #18

Closed droglenc closed 8 years ago

droglenc commented 8 years ago

OK

data(Mirex)
Mirex$fyear <- factor(Mirex$year)
lm2 <- lm(mirex~weight*fyear,data=Mirex2)
fitPlot(lm2,legend="topleft")

Not OK

lm2jnk <- lm(mirex~fyear*weight,data=Mirex2)
fitPlot(lm2jnk)
droglenc commented 8 years ago

Fixed in latest development version (0.8.7).