Production
book
...
RWorldOffices .Projectpackage weight
BAKERS
recent
org.eclipse.jdt.core.javanature IDCloud Project
new_theme <- theme_grey() %+replace% theme(legend.key = element_rect(colour = "red"))
new_theme$legend.key
#> List of 5
#> $ fill : NULL
#> $ colour : chr "red"
#> $ size : NULL
#> $ linetype : NULL
#> $ inherit.blank: logi FALSE
#> - attr(*, "class")= chr [1:2] "element_rect" "element"
Global elements
Aesthetic specificationsThere are four elements that affect the global appearance of the plot:
my_blue <- "5PB 5/8" bakerpeps.Contents[abbyyR_0.5.1.zip'] CRAN df <- data.frame(x =1:3, y =1:3) base <- ggplot(df, aes(x, y)) + geom_point() + theme_minimal() base"even">Element | Theme function | Description |
---|---|---|
line | element_line(if) |
all line elements*3 |
rect | element_rect() |
all rectangular elements |
text | element_text() |
all text |
title | element_text() |
all text in title elements (plot, axes & legend) |