-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconfigLattice.R
29 lines (24 loc) · 929 Bytes
/
configLattice.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
library(RColorBrewer)
myTheme <- custom.theme.2(pch = 19, cex = 0.7,
region = rev(brewer.pal(9, 'YlOrRd')),
symbol = brewer.pal(n = 8, name = "Dark2"))
myTheme$strip.background$col = 'transparent'
myTheme$strip.shingle$col = 'transparent'
myTheme$strip.border$col = 'transparent'
xscale.components.custom <- function(...){
ans <- xscale.components.default(...)
ans$top = FALSE
ans
}
yscale.components.custom <- function(...){
ans <- yscale.components.default(...)
ans$right = FALSE
ans
}
myArgs <- list(as.table = TRUE,
between = list(x = 0.5, y = 0.2),
xscale.components = xscale.components.custom,
yscale.components = yscale.components.custom)
defaultArgs <- lattice.options()$default.args
lattice.options(default.theme = myTheme,
default.args = modifyList(defaultArgs, myArgs))