Skip to contents

Custom aba ggplot2 theme

Usage

theme_aba(
  base_size = 16,
  legend.position = "top",
  coord_flip = FALSE,
  legend_title = FALSE,
  facet_labels = TRUE,
  axis_title = FALSE,
  family = c("Helvetica", "Tahoma", "Verdana")
)

Arguments

base_size

integer. base font size

legend.position

string. where to place legend ('none' = no legend)

coord_flip

logical. whether to flip x and y axes

legend_title

logical. whether to include legend title.

facet_labels

logical. Whether to include labels of facets.

axis_title

logical. Whether to include axis title for non-primary axis

family

string. which font family to use. Should be one of Verdana, Tahoma, Helvetica

Value

ggplot2 theme which can be added to a ggplot object

Examples

library(ggplot2)

data <- data.frame(x=1:10, y=1:10)
fig <- ggplot(data, aes(x=x,y=y)) + geom_point() + theme_aba()