Skip to contents

Reads an SVG file (typically produced by plot_tRNA_structure()) and wraps it in a centering <div>, returning an htmltools::HTML() object suitable for use in R Markdown or Quarto documents.

Usage

structure_html(svg_path)

Arguments

svg_path

Path to an SVG file, typically the return value of plot_tRNA_structure().

Value

An htmltools::HTML() object.

Examples

if (FALSE) { # \dontrun{
svg <- plot_tRNA_structure("tRNA-Glu-TTC", "Escherichia coli")
structure_html(svg)
} # }