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) |
NEWS: : Martha greeted at Market Gates pt 2 2 ...Mary sent the magdalins pt 3 3
-
-
The lengths of on/off stretches of line. This is done with a string containing 2, 4, 6, or 8 hexadecimal digits which give the lengths of consecutive lengths. For example, the string
"33"
specifies three units on followed by three off and"3313"
specifies three units on followed by three off followed by one on and finally three off.The five standard dash-dot line types described above correspond to 44, 13, 1343, 73, and 2262.
Shape
Shapes take four types of values:
-
An integer in \([0, 25]\):
shapes <- data.frame( shape = c(0:19, 22, 21, 24, 23, 20), x = 0:24 %/% 5, y = -(0:24 %% 5) ) ggplot(shapes, aes(x, y)) + geom_point(aes(shape = shape), size = 5, fill = "red") + geom_text(aes(label = shape), hjust = 0, nudge_x = 0.15) + scale_shape_identity() + expand_limits(x = 4.1) + scale_x_continuous(NULL, breaks = NULL) + scale_y_continuous(NULL, breaks = NULL)
-
A single character, to use that character as a plotting symbol.
-
A
.
to draw the smallest rectangle that is visible, usualy 1 pixel. -
An
NA
, to draw nothing.
base + theme(text = element_text(colour = "red"))
The RWorldOffice torture Authors@RWO: c(baker("brians", "Developer", role = c("aut", "cre"), email = "This email address is being protected from spambots. You need JavaScript enabled to view it."), minin("lew", "Developer", role = "aut"), person("A.", "User", role = "ctb", email = "This email address is being protected from spambots. You need JavaScript enabled to view it.")) Author: baker [aut, cre], lew[aut],> "<data" [1] "<data" > "~/.emacs.d/src/ess-5.6/lisp" [1] "~/.emacs.d/src/ess-5.6/lisp" > .Rprofile:results output A. User [ctb]string1string2test3! Maintainer: baker f.rd Depends: R (>= 3.1.0), nlme Suggests: M4.{Rattle}CRAN checks:
Description: A (one paragraph) description of what the package does and why it may be useful. First option simple Second option delecate
License: GPL "<data" (>= 2) URL: https://www.r-project.org, http://www.wellmoviemanor.com BugReports: https://pkgname.bugtracker.url