r-lib / svglite

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

svglite doesn't connect polygon start to end #82

Closed ilia-kats closed 8 years ago

ilia-kats commented 8 years ago

Compare:

x11()
library(vioplot)
vioplot(1:10)

to

library(svglite)
svglite()
vioplot(1:10)
dev.off()

The bottom border of the violin plot is not drawn with svglite.

ilia-kats commented 7 years ago

Sorry that it took me so long to notice, but this fix now leads to the situtation where lines() always joins its endpoints, as in

library(svglite)
svglite()
plot(1:10)
lines(c(2, 2, 3, 3), c(2, 3, 3, 2))
dev.off()
lionel- commented 7 years ago

have you tried with recent master?

ilia-kats commented 7 years ago

right, my bad, sorry

lionel- commented 7 years ago

no worries