Questions tagged [ragg]
The ragg tag has no usage guidance.
10
questions
7
votes
0
answers
171
views
+200
How can I use a non-standard graphics device interactively?
The problem
When running R outside of RStudio, plots will by default be shown in a pop-up window, e.g. provided by the quartz device on macOS, the X11 device on Unix, the windows device on Windows.
A ...
2
votes
1
answer
2k
views
How to make ragg::agg_png device work with ggsave?
When I try to use the new-ish ragg::agg_png() device with ggplot2::ggsave(), the image does not appear to save correctly.
Take the following reprex. I make a simple plot and then save it using the ...
2
votes
0
answers
264
views
How set the size of RStudio's Zoom pane?
I store my plots with ragg with defined sizes and resolution.
ragg::agg_png("Test.png",
res = 320, width = 11, height = 15, units = "in")
If these plots are opened in the ...
1
vote
0
answers
82
views
ggplot: Export ggsave files to emf using ragg fonts
I'm struggling to combine the use of the ragg font package with ggsave to an 'emf' file.
If I try to use something like this below having installed the 'Myriad Pro' font (https://fontsgeek.com/myriad-...
1
vote
0
answers
470
views
Why does my ggplot's text get bigger when I ggsave?
I like to write code in Rmarkdown files and preview my plots inline. When it comes to saving my plots as images though, my actual image doesn't match the inline preview that I see in Rstudio.
Here is ...
1
vote
1
answer
115
views
Issue including Greek or special characters in ggplots when using ragg and PNG output
I have a seemingly simple problem which I cannot figure out the cause of. I cannot get Greek characters into the Y/X-axis labels in a ggplot, if I save using the ragg device.
Reprex:
library(ggplot2)
...
0
votes
1
answer
832
views
Installing devtools
I'm trying to install devtools for R in a MacBook (OS 13.0)
Problem is that it doesn't have dependency pkgdown:
ERROR: dependency ‘pkgdown’ is not available for package ‘devtools’
* removing ‘/opt/...
0
votes
0
answers
42
views
Changing graphics backend for unit testing
I have an R-package containing a function that generates a plot that relies on the AGG graphics backend to draw emoji. However, when I include this function in the unit tests, the tests fail because I ...
0
votes
0
answers
45
views
Bar chart in ggplot2 adding logos with ggtextures gets axes mixed up when printed with agg_png
I print the plot with agg_png my prefered function, I have used it previously and works, but with the current chart do not work. When printing the chart it places the axis y where the x axis should be ...
0
votes
1
answer
82
views
ragg anti-aliasing for touching polygons
I'm rendering a series of touching polygons with grid and saving this to a png file using the ragg package. Whenever I do this with the ragg package, I get a white grid atop my polygons where they ...