Permalink
Browse files

Tweak icons

1 parent 31a3309 commit d8f07e406ad38b46851d8389c2ff74fedf831417 @hadley hadley committed Nov 7, 2016
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1,5 +1,8 @@
library(grid)
library(maps)
+library(ggplot2)
+
+set.seed(1014)
# Coords -----------------------------------------------------------------------
@@ -504,7 +507,7 @@ write_icon("scale_colour_hue", {
), col = NA))
})
-write_icon("scale_identity", {
+write_icon("scale_colour_identity", {
textGrob("f(x) = x", gp = gpar(cex = 1.2))
})
@@ -516,7 +519,7 @@ write_icon("scale_linetype", {
))
})
-write_icon("scale_manual", {
+write_icon("scale_colour_manual", {
textGrob("DIY", gp = gpar(cex = 1.2))
})
@@ -542,10 +545,6 @@ write_icon("scale_x_date", {
textGrob("14/10/1979", gp = gpar(cex = 1))
})
-write_icon("scale_x_datetime", {
- textGrob("14/10/1979\n10:14am", gp = gpar(cex = 0.9))
-})
-
# Statistics -------------------------------------------------------------------
write_icon("stat_identity", {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8f07e4

Please sign in to comment.