ggpol icon indicating copy to clipboard operation
ggpol copied to clipboard

argument "layout" is missing, with no default

Open ericolo opened this issue 2 months ago • 2 comments

Hello,

I've came back to code that was a few months old and I cannot regenerate my plot with geom_boxjitter, here's the error I get:

Error in `geom_boxjitter()`:
! Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error in `fun()`:
! argument "layout" is missing, with no default
Run `rlang::last_trace()` to see where the error occurred.

My code:

ggplot(df,aes(x=mag_only,y=mean_perc,color=mag_only))+
     geom_boxjitter(outlier.shape = NA, width = 0.75, jitter.alpha = 0.8, jitter.size = 0.7, jitter.stroke = NA, jitter.params = list(height = 0))+
     scale_color_manual(values=c(palette_okabe_ito()[2],palette_okabe_ito()[1]))+
     theme_bw()+
     facet_wrap(~levelB,nrow=2)
    ggsave("stock_boxplot.png",dpi=300,bg="white",width=16)

I'm using R v4.4.3, ggplot2 v4.0.0 and ggpol v0.0.7 I see that there's no recent release of ggpol so maybe a problem on the R version ?

Thanks in advance ! And thanks for creating ggpol, I've been using geom_boxjitter a lot ! Eric

ericolo avatar Oct 20 '25 17:10 ericolo

Have the same issue here, did you find a fix? @ericolo

echarvel3 avatar Dec 04 '25 18:12 echarvel3

Nope no fix on my side, I just went back to geom_jitter and geom_boxplot

ericolo avatar Dec 04 '25 19:12 ericolo