theme_poma: A ggplot theme which allow custom yet consistent styling of...

View source: R/theme.R

theme_pomaR Documentation

A ggplot theme which allow custom yet consistent styling of plots in the POMA package and web app.

Description

A ggplot theme which allow custom yet consistent styling of plots in the POMA package and web app.

Usage

theme_poma(
  base_size = 15,
  axistitle = "xy",
  axistext = "xy",
  legend_position = "bottom",
  legend_title = TRUE,
  axis_x_rotate = FALSE,
  margin = 2
)

Arguments

base_size

(integer) Base point size

axistitle

(string) Axis titles. Options include "none" or any combination of "X", "Y", "x" and "y".

axistext

(string) Axis text labels for values or groups. Options include "none" or any combination of "X", "Y", "x" and "y".

legend_position

Character. Legend position. See ggplot2 documentation.

legend_title

Logical. Include legend title.

axis_x_rotate

Logical. Rotate x-axis 45 degrees.

margin

(numeric) Should a margin of x be added to the plot? Defaults to 0 (no margin by default).

Examples

## Not run: 
library(ggplot2)
ggplot(diamonds, aes(cut)) + geom_bar() + theme_poma()

## End(Not run)


pcastellanoescuder/POMA documentation built on Nov. 18, 2024, 10:41 p.m.