try the following workaround, works even in 2019 :) pp = ggplot2.ggplot(mtcars) + \ ggplot2.aes_string(x='wt', y='mpg', col='factor(cyl)') + \ ggplot2.geom_point() + \ ggplot2.geom_smooth(ggplot2.aes_string(group = 'cyl'), method = 'lm') //if a plot is barely or not shown in the preview: //load the plot twice and use r.windows() in between //then use grdevices.dev_off() twice and choose waiting time in between rprint(pp) r.windows() rprint(pp) grdevices.dev_off() time.sleep(10) grdevices.dev_off()...