Skip to contents

Converts plots to base64 and appends them to the HTML content.

Usage

process_plots(
  plots_element,
  plots_size,
  html_content,
  toc,
  header_index,
  element_name = NA
)

Arguments

plots_element

A list of plots to be processed.

plots_size

A list of sizes for the plots.

html_content

The current state of the HTML content.

toc

The current state of the table of contents (TOC).

header_index

An index to uniquely identify each section for anchoring.

element_name

A character string specifying the name of the element.

Value

Updated HTML content with the plots included.