r-lib / svglite

A lightweight svg graphics device for R
https://svglite.r-lib.org
180 stars 39 forks source link

Missing edges in svg file for some point characters when background color is set #92

Closed andrewmarx closed 4 years ago

andrewmarx commented 6 years ago

I'm trying to save some plots in the svg format, but edges are not being outputted for some symbols in the svg file when a background color is used. They show up fine in the plot pane and png outputs. Here is an example of the issue: compare

Potentially useful info:

library("svglite")

dat <- data.frame(x = c(1,2,3,4,5),
                  y = c(1,2,3,4,5),
                  sym = c(21,22,23,24,25))

svglite("~/plot.svg")
plot(dat$x, dat$y, pch = dat$sym, width = 6, cex = 5)
dev.off()

svglite("~/plot2.svg")
plot(dat$x, dat$y, pch = dat$sym, width = 6, bg = "yellow", cex = 5)
dev.off()

plots.zip

tshalev commented 5 years ago

Andrew; did you ever solve this issue?

thomasp85 commented 4 years ago

I can no longer reproduce this issue, so it seems to have been resolved. Please reopen if you still see it