
Style for Michelangelo inspired plots
style_michelangelo.Rd
Generates ggplot2 plots with aesthetic elements inspired by Michelangelo's works, such as David, the Sistine Chapel, and the Pietà. Supports scatter, line, column, and map visualizations with customizable theming and effects.
Usage
style_michelangelo(
data,
x,
y,
color_var = NULL,
fill_var = NULL,
label_var = NULL,
title = "Magnificencia de Datos al Estilo de Miguel Ángel",
subtitle = "Una composición de fuerza y detalle",
caption = "Obra Maestra del Análisis",
plot_type = c("column", "scatter", "line", "map"),
work_inspired_by = c("david", "sistine_chapel", "pieta"),
show_labels = FALSE,
add_grid_lines = FALSE,
show_background = TRUE,
add_glow = FALSE,
coord_flip = FALSE,
text_size = 16,
add_texture = NULL,
canvas = NULL,
add_margins = TRUE,
add_filter = FALSE
)
Arguments
- data
A data frame (or sf object if `plot_type = "map"`).
- x
Tidy-evaluated expression specifying the variable for the x-axis.
- y
Tidy-evaluated expression specifying the variable for the y-axis.
- color_var
Optional tidy-evaluated expression for color mapping. Defaults to NULL.
- fill_var
Optional tidy-evaluated expression for fill mapping (used in column or map plots). Defaults to NULL.
- label_var
Optional tidy-evaluated expression for data labels (used in column or map plots). Defaults to NULL.
- title
The plot title.
- subtitle
The plot subtitle.
- caption
The plot caption.
- plot_type
Type of plot to produce: "scatter", "line", "column", or "map".
- work_inspired_by
Specific work for aesthetic inspiration: "david", "sistine_chapel", or "pieta".
- show_labels
Logical. Whether to display text labels on the plot. Defaults to FALSE.
- add_grid_lines
Logical. Whether to display major grid lines (non-map plots only). Defaults to FALSE.
- show_background
Logical. Whether to show the panel background. Defaults to TRUE.
- add_glow
Logical. Whether to apply an outer glow effect (for maps or specific geoms). Defaults to FALSE.
- coord_flip
Logical. If TRUE and plot_type is "column", flips axes and label positions. Defaults to FALSE.
- text_size
Base size for text elements (titles, labels, legend). Labels and annotations scale proportionally from this value. Defaults to 16
- add_texture
Integer (1–3). Applies visual texture effects to geoms. Default: `NULL`.
- canvas
Integer (1–6). Adds canvas-style background image. Default: `NULL`.
- add_margins
Logical. Applies margins to plot and labs. Default: `TRUE`.
- add_filter
Experimental. Logical. Applies oil effect to the full graph. Default: `FALSE`.