Create HTML document with maidr enhancements using the orchestrator
Source:R/maidr.R
create_maidr_html.RdCreate HTML document with maidr enhancements using the orchestrator
Usage
create_maidr_html(
plot,
use_cdn = NULL,
shiny = FALSE,
orchestrator = NULL,
width = NULL,
height = NULL,
hover_mode = NULL,
...
)Arguments
- plot
A ggplot2 object
- use_cdn
Logical. If
TRUE, use CDN. IfFALSEorNULL(default), use bundled files; seemaidr_html_dependencies().- shiny
If TRUE, returns just the SVG content instead of full HTML document
- orchestrator
Optional pre-created orchestrator to reuse (avoids double creation). The chart is drawn at the size it was created with, and
widthandheightare not read.- width, height
The size to draw the chart at, in inches, or
NULLfor maidr's own; seechart_canvas_size(). Checked by the caller.- hover_mode
The chart's
hoverMode, orNULLforgetOption("maidr.hover_mode"); seebuild_interactive_svg().- ...
Additional arguments passed to
create_fallback_html()