@@ -76,9 +76,9 @@ theme_grey <- function(base_size = 11, base_family = "") {
margin = margin(), debug = FALSE
),
- axis.line = element_line (),
- axis.line.x = element_blank() ,
- axis.line.y = element_blank() ,
+ axis.line = element_blank (),
+ axis.line.x = NULL ,
+ axis.line.y = NULL ,
axis.text = element_text(size = rel(0.8 ), colour = " grey30" ),
axis.text.x = element_text(margin = margin(t = 0.8 * half_line / 2 ), vjust = 1 ),
axis.text.x.top = element_text(margin = margin(b = 0.8 * half_line / 2 ), vjust = 0 ),
@@ -185,7 +185,9 @@ theme_bw <- function(base_size = 11, base_family = "") {
# contour strips to match panel contour
strip.background = element_rect(fill = " grey85" , colour = " grey20" ),
# match legend key to background
- legend.key = element_rect(fill = " white" , colour = NA )
+ legend.key = element_rect(fill = " white" , colour = NA ),
+
+ complete = TRUE
)
}
@@ -209,7 +211,9 @@ theme_linedraw <- function(base_size = 11, base_family = "") {
# strips with black background and white text
strip.background = element_rect(fill = " black" ),
- strip.text = element_text(colour = " white" , size = rel(0.8 ))
+ strip.text = element_text(colour = " white" , size = rel(0.8 )),
+
+ complete = TRUE
)
}
@@ -235,7 +239,9 @@ theme_light <- function(base_size = 11, base_family = "") {
# dark strips with light text (inverse contrast compared to theme_grey)
strip.background = element_rect(fill = " grey70" , colour = NA ),
- strip.text = element_text(colour = " white" , size = rel(0.8 ))
+ strip.text = element_text(colour = " white" , size = rel(0.8 )),
+
+ complete = TRUE
)
}
@@ -261,7 +267,9 @@ theme_dark <- function(base_size = 11, base_family = "") {
# dark strips with light text (inverse contrast compared to theme_grey)
strip.background = element_rect(fill = " grey15" , colour = NA ),
- strip.text = element_text(colour = " grey90" , size = rel(0.8 ))
+ strip.text = element_text(colour = " grey90" , size = rel(0.8 )),
+
+ complete = TRUE
)
}
@@ -271,14 +279,15 @@ theme_minimal <- function(base_size = 11, base_family = "") {
# Starts with theme_bw and remove most parts
theme_bw(base_size = base_size , base_family = base_family ) %+ replace %
theme(
- axis.ticks.x = element_blank(),
- axis.ticks.y = element_blank(),
+ axis.ticks = element_blank(),
legend.background = element_blank(),
legend.key = element_blank(),
panel.background = element_blank(),
panel.border = element_blank(),
strip.background = element_blank(),
- plot.background = element_blank()
+ plot.background = element_blank(),
+
+ complete = TRUE
)
}
@@ -293,15 +302,16 @@ theme_classic <- function(base_size = 11, base_family = ""){
panel.grid.minor = element_blank(),
# show axes
- axis.line.x = element_line(colour = " black" , size = 0.5 ),
- axis.line.y = element_line(colour = " black" , size = 0.5 ),
+ axis.line = element_line(colour = " black" , size = 0.5 ),
# match legend key to panel.background
legend.key = element_blank(),
# simple, black and white strips
- strip.background = element_rect(fill = " white" , colour = " black" , size = 1 )
+ strip.background = element_rect(fill = " white" , colour = " black" , size = 1 ),
# NB: size is 1 but clipped, it looks like the 0.5 of the axes
+
+ complete = TRUE
)
}
@@ -319,10 +329,8 @@ theme_void <- function(base_size = 11, base_family = "") {
lineheight = 0.9 , hjust = 0.5 , vjust = 0.5 , angle = 0 ,
margin = margin(), debug = FALSE
),
- axis.text.x = element_blank(),
- axis.text.y = element_blank(),
- axis.title.x = element_blank(),
- axis.title.y = element_blank(),
+ axis.text = element_blank(),
+ axis.title = element_blank(),
legend.text = element_text(size = rel(0.8 )),
legend.title = element_text(hjust = 0 ),
strip.text = element_text(size = rel(0.8 )),
0 comments on commit
32a2c27