I'm trying to export a ggsurvplot-object to powerpoint with officer-package with no success. I was able to find a lot of instructions on how to use now obsolute ReporterS-package for this and a few mentions that officer should work as well. There…
I want to export some tables and ggplot-graphics from a shiny app in an excel-file. Until now I worked with openxlsx, adding many sheets and content. Now I want to export a ggplot as editable vector graphic to Excel. This is well feasible with…
This is a difficult issue to debug as the issue appears to arise from a quirk of the underlying template.
My summary of the issue is that ggplot2 charts have bolded text when using some templates and rvg::dml . The text is not bolded when using the…
I wish to be able to choose the dimensions of the plots I insert into my powerpoint when I generate them. I realise I could simply save them as a separate file and then insert them. But I would prefer to be able to manipulate them whilst I'm…
When using officer and the rvg graphics I want my images to not have the background white square.
The reason for this is that some functions leave a lot of empty space up at the top and often this will overlap with the header. I can go in and…
My goal is simple: I want to create a title in ggplot2 where some words are bolded and some are not, then use OfficeR to add it to a Powerpoint object and print said object.
Every time I try to do this however, each word in the PowerPoint title is…
I am trying to use the officer package in order to produce a PowerPoint document that contains R base graphics, preferably not with fixed resolution, but rather as editable vector graphics. Here is what I have been trying, but the resulting…
I have to implement a download function in shiny app. This is an example code:
library(rvg)
library(ggplot2)
library(officer)
library(highcharts)
library(jpeg)
library(ggplot2)
font.add.google("Open Sans",…
How can I layer shapes/text in Ruby RVG library? For example, I want to have "Text 1" over "Text 2":
rvg.text(0, 0, "Text 1")
rvg.text(0, 0, "Text 2")
Right now it will have "Text 2" over "Text 1" but I want to have "Text 1" over "Text 2".
Edit
In…
I have an R applicaion that builds a large number of client editable charts by Office tool (pptx). I try to embed a ggplot graph into an existing slied in vector format. I use the ph_with_vg_at function to export the graph to pptx. The point is that…