
Style for Rembrandt inspired plots
style_rembrandt.Rd
Generates ggplot2 plots with aesthetic elements inspired by Rembrandt's works, such as *The Night Watch*, *Self-Portrait*, and *The Storm on the Sea of Galilee*. Supports scatter, line, column, and map visualizations with rich contrast and depth, reminiscent of chiaroscuro.
Usage
style_rembrandt(
data,
x = NULL,
y = NULL,
color_var = NULL,
fill_var = NULL,
label_var = NULL,
title = "Iluminando Datos al Estilo de Rembrandt",
subtitle = "Profundidad y contraste en la visualización",
caption = "Maestría en la Sombra",
plot_type = c("column", "scatter", "line", "map"),
work_inspired_by = c("night_watch", "self_portrait", "storm_sea"),
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 an 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: "night_watch", "self_portrait", or "storm_sea".
- show_labels
Logical. Whether to display text labels on the plot. Defaults to FALSE.
- add_grid_lines
Logical. Whether to show 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 to 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`.