Browse code

Merge pull request #112 from Bisaloo/patch-1

Add legend transparency to theme_transparent

Guangchuang Yu authored on 13/02/2017 05:17:28 • GitHub committed on 13/02/2017 05:17:28
Showing 1 changed files

... ...
@@ -93,6 +93,12 @@ theme_transparent <- function(...) {
93 93
               colour = NA),
94 94
           plot.background = element_rect(
95 95
               fill = "transparent",
96
+              colour = NA),
97
+          legend.key = element_rect(
98
+              fill = "transparent", 
99
+              colour = NA),
100
+          legend.background = element_rect(
101
+              fill = "transparent", 
96 102
               colour = NA), ...)
97 103
 }
98 104