gg_venn: ggplot2 Venn/Euler Geom Function

View source: R/geom-venn.R

gg_vennR Documentation

ggplot2 Venn/Euler Geom Function

Description

Renders a Venn or Euler diagram using the eulerr package (preferred) or ggVennDiagram as a fallback. Both are in Suggests – the function degrades gracefully with an informative message if neither is installed.

Usage

gg_venn(spec, opts, geom_params, ...)

Arguments

spec

An hd_spec() object. ⁠$data⁠ is not used; only geom_params$sets carries the diagram data.

opts

An hd_opts() object.

geom_params

Named list. Must contain sets (the set list).

Value

A list of ggplot2 layers / grob wrapped in a list for the engine.


highdir documentation built on July 31, 2026, 5:06 p.m.