theme_facets_interactive: Interactive theme for ggiraph facets

View source: R/ggiraph-themes.R

theme_facets_interactiveR Documentation

Interactive theme for ggiraph facets

Description

A theme that enables interactive strip text and backgrounds for faceted plots using ggiraph. This theme ensures that facet labels can receive hover events and tooltips.

Usage

theme_facets_interactive(
  base_theme = theme_bw(),
  interactive_text = TRUE,
  interactive_rects = TRUE,
  strip_text_color = NULL,
  strip_background_color = NULL,
  strip_text_size = NULL
)

Arguments

base_theme

A theme that will will be modified

interactive_text

A logical indicating whether text elements of strips should be interactive.

interactive_rects

A logical indicating whether rect elements of strips should be interactive.

strip_text_color

Color for strip text (or NULL to retain settings from base_theme)

strip_background_color

Color for strip background (or NULL to retain settings from base_theme)

strip_text_size

Size for strip text (or NULL to retain settings from base_theme)

Value

A ggplot2 theme object


ggformula documentation built on Jan. 17, 2026, 9:06 a.m.