Closed emstruong closed 1 year ago
If you open the svg file you can see that it contains the requested rects as expected. My guess is that because you are plotting rects with 0 width some sag renderers decide to not show these irrespective of whether they have a stroke. That is not the fault of svglite, though. The svg()
device doesn't have this because it encodes everything as a path meaning that renderers can't make these optimisations.
Related to ggplot2::ggsave.
Code
Created on 2022-12-26 by the reprex package (v2.0.1)
Attached are the two plots I get
Using
svg()
Using
svglite()