set_base_sty: Set graphical parameters

Description Usage Arguments Examples

View source: R/set_base_sty.R

Description

Set graphical parameters

Usage

1
set_base_sty(theme = NA, variation = 2)

Arguments

theme

A string corresponding to one of the 31 themes available in RStudio (see list_pal). If not specified, the function tries to retrieve the active theme using rstudioapi.

variation

An integer ranging from 0 to 5 to select among 6 flavors for each theme.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Not run: 
set_base_sty()

## End(Not run)
require(default)

set_base_sty("Tomorrow Night", 3)
hist(rnorm(100))
plot(iris$Sepal.Length, iris$Petal.Length)
barplot(1:10, names.arg = LETTERS[1:10])
boxplot(iris$Sepal.Length ~ iris$Species)
image(volcano)

par(mfrow = c(2, 3))
x <- rnorm(100)
for(i in list_pal()){
   for(j in 0:5){
       set_base_sty(i, variation = j)
       hist(x)
       title(paste(i, j))
   }
}

fkeck/editheme documentation built on May 29, 2019, 2:34 p.m.