Skip to contents

A custom ggplot2 theme optimized for macpie figures, with clean backgrounds, consistent text sizing, and configurable axis/legend elements.

Usage

macpie_theme(
  show_x_title = TRUE,
  show_y_title = TRUE,
  legend_position_ = "bottom",
  x_labels_angle = 0
)

Arguments

show_x_title

Logical; if TRUE, displays the x-axis title.

show_y_title

Logical; if TRUE, displays the y-axis title.

legend_position_

Character; position of the legend (e.g., 'bottom', 'none').

x_labels_angle

Numeric; rotation angle (in degrees) for x-axis text labels.

Value

A ggplot2 theme object that can be added to a plot.

Examples

library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
  geom_point(color = macpie_colours$high) +
  macpie_theme()