Skip to content

Commit 5829262

Browse files
committed
Use svglite for outputting svg
1 parent c9dada7 commit 5829262

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Suggests:
3636
nlme,
3737
testthat,
3838
quantreg,
39-
knitr
39+
knitr,
40+
svglite
4041
Enhances: sp
4142
License: GPL-2
4243
URL: http://ggplot2.org, https://github.com/hadley/ggplot2

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ggplot2 2.0.0.9000
22

3+
* `ggsave("x.svg")` now uses svglite to produce the svg (#1432).
4+
35
* `stat_bin()` has been overhauled to use the same algorithm as ggvis, which
46
has been considerably improved thanks to the advice of Randy Prium (@rpruim).
57
This includes:

R/save.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ plot_dev <- function(device, filename, dpi = 300) {
104104
ps = eps,
105105
tex = function(...) grDevices::pictex(...),
106106
pdf = function(..., version = "1.4") grDevices::pdf(..., version = version),
107-
svg = function(...) grDevices::svg(...),
107+
svg = function(...) svglite::svglite(...),
108108
emf = function(...) grDevices::win.metafile(...),
109109
wmf = function(...) grDevices::win.metafile(...),
110110
png = function(...) grDevices::png(..., res = dpi, units = "in"),

0 commit comments

Comments
 (0)