---
title: "theme_stwd"
---

[< Back to Reference](../reference.qmd) | [View source](https://codeberg.org/usrbinr/stwd/src/branch/main/R/theme.R#L35)

# `theme_stwd()`

STWD Theme for Storytelling

## Usage

```r
theme_stwd(base_size = 11, base_family = "")
```

## Arguments

| Argument | Description |
|----------|-------------|
| `base_size` | Base font size. Default: 11. |
| `base_family` | Base font family. Default: "" (system default). |

## Value

A ggplot2 theme object.

## Description

A clean, minimal ggplot2 theme optimized for data storytelling.

## Details

Follows best practices from "Storytelling with Data":

- White background with no chart border

- Horizontal grid lines only (subtle gray)

- No axis lines or ticks

- Legend positioned at top-left

- Clean typography with muted colors

This theme removes visual distractions so the data takes center stage.

## Examples

```r
## Not run: 
library(ggplot2)

ggplot(mtcars, aes(wt, mpg)) +
    geom_point() +
    theme_stwd()

## End(Not run)
```

