Semi-transparency in RStudio

前端 未结 4 1042
不知归路
不知归路 2021-02-14 03:38

I\'m trying to create a plot with a semi-transparent confidence region around the regression line:

library(car)
library(ggplot2)
library(effects)

mod <- lm(s         


        
4条回答
  •  粉色の甜心
    2021-02-14 04:34

    I had exactly the same problem as the OP, but in my case setting options(bitmapType="cairo") did not solve the problem.

    In my case the problem was caused by the fact that I compiled R manually from source without the --with-cairo configure option (or rather: my system was lacking the necessary libcairo2-dev package, the --with-cairo did not have any effect). Recompiling R with proper cairo support fixed the issue. It now even works although getOption("bitmapType") is still set to `"Xlib".

提交回复
热议问题