r-lib / svglite

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

Drawing size incorrect #50

Closed ghost closed 8 years ago

ghost commented 8 years ago

Drawing size is truncated to integers. These two produce identical files

svg(file='testsvg1.svg', width=10, height=7) plot(0, 0) svg(file='testsvg2.svg', width=10.5, height=7.5) plot(0, 0) viewBox is 720 x 504 (= 72 * (10 x 7)) in both cases.