Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
andrewmarx opened this issue Oct 1, 2018 · 2 comments

Comments

@andrewmarx
Copy link

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:

  • Completely removed R and associated packages and did a fresh install of 3.4.4.
  • Tested on 2 Ubuntu based operating systems (16.04LTS and 18.04LTS)
  • Attached plots (in zip file because svg files cannot be attached)
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
Copy link

tshalev commented Jun 18, 2019

Andrew; did you ever solve this issue?

@thomasp85
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants