jtools icon indicating copy to clipboard operation
jtools copied to clipboard

Backtransform Outcome in Effect_Plot

Open abadgerw opened this issue 1 year ago • 0 comments

I am working with the attached dataset: Test.csv

I am running the following model:

library(ggeffects)
library(jtools)

df<-read.csv("Test.csv",header=T,row.names=1)

model<-lm(log(Molecule) ~ Volume + Pred1 + Pred2 + Pred3, data=df)

I tried plotting the results using effect_plot:

effect_plot(model,pred="Volume",interval=TRUE,plot.points = TRUE,data=df)

Effect_Plot

However, I can't seem to get the plot to display the native backtransformed y-axis, only the logged values. Any way that can be done?

I know the ggeffects package can display the backtransformed y-axis but it seems to have issues plotting the points as your package can (see issue here: https://github.com/strengejacke/ggeffects/issues/522)

abadgerw avatar May 10 '24 19:05 abadgerw