element_blinds | R Documentation |
this element is used to control the line color of panel.grid.major/minor.x or panel.grid.major/minor.y
element_blinds(
colour = c("white", "grey60"),
axis,
color = NULL,
inherit.blank = FALSE
)
colour |
the colour of rectangular, default is c('white', 'grey60'). |
axis |
character, require, option is |
color |
Color is an alias for colour |
inherit.blank |
Should this element inherit the existence of an
|
library(ggplot2)
df <- data.frame(
x = rep(c(2, 5, 7, 9, 12), 2),
y = rep(c(1, 2), each = 5),
z = factor(rep(1:5, each = 2)),
w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)
)
ggplot(df, aes(x, y)) + geom_tile(aes(fill = z), colour = 'grey50') +
theme(panel.grid.major.y = element_blinds(color= c('white', 'grey'), axis='y'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.