Questions tagged [rvg]

rvg is a set of graphics devices that produces Vector Graphics outputs.

Additional links:

11 questions
4
votes
2 answers

Does officer-package accept ggsurvplot-object?

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…
4
votes
1 answer

Possibility to combine openxlsx-Workbook and xl_add_vg from rvg - Export editable graphics

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…
3
votes
0 answers

Officer ggplot2 charts have bolded text when using some templates and rvg

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…
daviddiviny
  • 111
  • 1
  • 3
2
votes
1 answer

What is the equivalent of officer::ph_location_fullsize( ) in the package rvg?

I would like to export multiple edible plots and tables from R to PowerPoint. Below is a snippet of the code that I have, and the packages I'm…
Wyn Z.
  • 35
  • 4
1
vote
1 answer

Changing the scale of a plot or table when generating a power point

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…
1
vote
1 answer

When using officer and rvg, can you remove or prevent the background white square behind the image inserted into PowerPoint from the code?

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…
0
votes
0 answers

When partially bolding title in ggplot2 via element_markdown and pasting to powerpoint using officeR, words are not aligned

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…
waterboy
  • 13
  • 2
0
votes
1 answer

Export R base graphics using rvg to PowerPoint

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…
HPF
  • 185
  • 8
0
votes
0 answers

HighcharteR in OfficeR/RVG package possible?

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",…
user7353167
0
votes
1 answer

Layering in RVG

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…
Artem Kalinchuk
  • 6,502
  • 7
  • 43
  • 57
-3
votes
2 answers

Embed a graph into an existing pptx slide using the "ph_with_vg_at" R function

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…