Closed
Description
SVG files generated by ggsave (tested on Ubuntu 18.04 LTS) are kind of stretched compared to the plots in RStudio or PNG format.
(R 4.0.3 ggplot2 3.3.6 svglite 2.1.0)
plot = ggplot(iris, aes(x = Species, y = Sepal.Length)) + geom_violin()
plot # RStudio
ggsave("test_ggsave.png", plot, "png")
ggsave("test_ggsave.svg", plot, "svg")
SVG files looks like this:
And the PNG file looks like this:
This is in RStudio:
I have removed the attribute lengthAdjust='spacingAndGlyphs'
from text objects:
I think that this option could be the culprit.
Metadata
Metadata
Assignees
Labels
No labels