Learn R Programming

envalysis (version 0.3.3)

theme_publish: ggplot2 theme for scientific publications

Description

Themes set the general aspect of the plot such as the color of the background, gridlines, the size and colour of fonts. This particular theme is based on the classic dark-on-light ggplot2 theme_bw and has been used for scientific publications,

Usage

theme_publish(base_size = 12, base_family = "", line_size = 0.25, ...)

Arguments

base_size

base font size

base_family

base font family

line_size

base line size for, e.g. for ticks and axes

further arguments to be passed to theme_bw

See Also

ggtheme

Examples

Run this code
# NOT RUN {
require(ggplot2)
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
     colour=factor(gear))) + facet_wrap( ~ am)
p
p + theme_publish()

# }

Run the code above in your browser using DataLab