感谢各位简友一直的关注。
欢迎关注:感谢陪伴
安装
install.packages("officer")
install.packages("rvg")
install.packages("openxlsx")
install.packages("ggplot2")
install.packages("flextable")
install.packages("xtable")
install.packages("rgl")
install.packages("stargazer")
install.packages("tikzDevice")
install.packages("xml2")
install.packages("broom")
install.packages("devtools")
library(devtools)
devtools::install_github("tomwenseleers/export")
使用
library(export)
?graph2ppt
p <- plot(cars, main = "cars")
p
graph2ppt(p, file = "test.pptx", width = 4, height = 4)
?graph2doc
?graph2svg
?graph2png
?table2ppt
?table2tex
?table2excel
?table2doc
?table2html