2
R 반투명 (R 버전 3.3.2)에 문제가 있습니다. 내가하려고 할 때이 오류가 발생합니다 : 카이로에서 R-3.3.2 문제의 반투명
How do I preserve transparency in ggplot2?
How to set cairo as default backend for x11() in R?
, 내가 http://tinyheero.github.io/2015/09/15/semi-transparency-r.html을 시도ggplot(iris, aes(x = factor(Species), y = Sepal.Length, fill = Species)) +
+ geom_boxplot(alpha = 0.4)
Warning messages:
1: In grDevices::x11(..., type = "cairo") :
cairo-based types are not supported on this build - using "Xlib"
2: In grid.Call.graphics(L_polygon, x$x, x$y, index) :
semi-transparency is not supported on this device: reported only once per page
하지만 여전히 같은 오류가 나는 수정 내 .Rprofile
, 다시 시작했지만 현재 진행 중입니다.
나는 어떤 종류의 결과물을 고칠 수 있을지 모르겠다.
은 미정 :
options('device')
$device
[1] "x11"
당신이 어떤 단서가 있다면 당신에게 대단히 감사합니다, 나는 당신에게 다른 결과를 제시 할 수 있는지 알려주세요.
편집 1 :
내가 R
을 제거가 ./configure --with-cairo
를 사용하여 다시 설치 :
>sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS
locale:
[1] LC_CTYPE=fr_FR.UTF-8 LC_NUMERIC=C LC_TIME=fr_FR.UTF-8 LC_COLLATE=fr_FR.UTF-8
[5] LC_MONETARY=fr_FR.UTF-8 LC_MESSAGES=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Cairo_1.5-9
>capabilities("cairo")
cairo
FALSE
어떤 OS가 무엇입니까? 관련 : http://r.789695.n4.nabble.com/Error-in-svg-cairo-based-devices-are-not-supported-on-this-build-td3535907.html – tonytonov
답변 해 주셔서 감사합니다. 나는 BioLinux/Ubuntu 14.04 LTS에서 일하고있다. – Corend
'sessionInfo()'를 게시 하시겠습니까? X11에 대한 문서 항목에서는 "cairographics에 대한 지원없이 시스템을 컴파일 한 경우 [Xlib] 만 사용할 수 있습니다."라고 나와 있습니다. 그래서 시스템 라이브러리가 누락 되었습니까? '능력 ("카이로") 란 무엇입니까? 아마도 관련이 있습니다 : https://stackoverflow.com/questions/13235100/empty-plot-in-r – tonytonov