1
그레이 스케일 트 리뷰는 ReportRs를 사용합니까? trellis.device(color=FALSE)
는ReporteR을 구성하여 그레이 스케일 격자 플롯을 얻으십시오
library(ReporteRs)
library(lattice)
trellis.device(color=FALSE) # set grayscale
p <- xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos,
auto.key =list(space = "right"))
print(p) # ok, grayscale
doc = pptx("Test")
doc = addSlide(doc, "Title and Content")
doc = addPlot(doc, fun = print, x = p) # not ok, colored
writeDoc(doc, "test.pptx")
여기
대신 trellis.par.set를 사용하는 경우는 OK입니다