You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
svglite output has viewBox="0 0 367.20 367.20", where as "grDevices::svg" output has width="367pt" height="367pt" and viewBox= "0 0 367 367"
I'm no expert on SVG, but (2) can effect the size of the SVG embedded in a web page if it is not otherwise set. Also if the web page does specify a fixed size, the svglite output might appear to have larger fonts than intended (since the entire rendering will be upscaled). Based on this the "grDevices::svg" output appears more comparable to the png and thus more correct.
The text was updated successfully, but these errors were encountered:
Here is minimal reproducible script extracted from tidyverse/ggplot2#1686
Using ggplot2 2.1.0:
When comparing svg_test_svglite.svg to both svg_test_gr.svg and svg_test.png:
I'm no expert on SVG, but (2) can effect the size of the SVG embedded in a web page if it is not otherwise set. Also if the web page does specify a fixed size, the svglite output might appear to have larger fonts than intended (since the entire rendering will be upscaled). Based on this the "grDevices::svg" output appears more comparable to the png and thus more correct.
The text was updated successfully, but these errors were encountered: