Learn R Programming

maidr (version 0.1.2)

create_inline_image: Create inline image HTML for non-iframe rendering

Description

Creates a simple img tag for fallback/non-HTML output. Used when we don't need iframe isolation (unsupported plots in HTML, or any plot in PDF/EPUB output).

Usage

create_inline_image(plot = NULL, width = "100%", height = "auto")

Value

Character string of HTML with img tag

Arguments

plot

A ggplot object or NULL for Base R

width

Width for the image container

height

Height for the image container