Creating Professional Looking Powerpoints in R

前端 未结 2 474
眼角桃花
眼角桃花 2020-12-08 03:19

Is there a good way to use data from R and a package like ReporteRs to generate complete Powerpoints? I have about 900 slides to create. Our analysts currently follow this p

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-08 03:48

    You can use my new export package that just came out on CRAN to easily export to Office (Word/Powerpoint) in native Office vector format, resulting in fully editable graphs, see https://cran.r-project.org/web/packages/export/index.html and https://github.com/tomwenseleers/export

    For example:

    install.packages("export")
    library(export)
    
    ?graph2ppt
    ?graph2doc
    
    library(ggplot2)
    qplot(Sepal.Length, Petal.Length, data = iris, color = Species, 
          size = Petal.Width, alpha = I(0.7))
    graph2ppt(file="ggplot2_plot.pptx", width=7, height=5) 
    graph2doc(file="ggplot2_plot.docx", width=7, height=5) 
    

提交回复
热议问题