有没有一种使用 ReportRs获得灰度格子图的舒适方法?trellis.device(color=FALSE)
似乎在这里不起作用
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")
这里
代替