Learn R Programming

maidr (version 0.1.2)

knit_print.ggplot: Custom knit_print Method for ggplot Objects

Description

Converts ggplot objects to MAIDR widgets for accessible rendering in RMarkdown. Uses iframe-based isolation to ensure each plot has its own MAIDR.js context. Automatically falls back to image rendering for unsupported plot types or non-HTML output formats (PDF, EPUB).

Usage

knit_print.ggplot(x, options = list(), ...)

Value

A knit_asis object containing the iframe HTML or inline image

Arguments

x

A ggplot object

options

Chunk options from knitr

...

Additional arguments (ignored)