Skip to contents

This function converts a plot to a base64 image and adds it to the HTML content.

Usage

add_plot_to_html(html_content, plot_element, plots_size, section_index)

Arguments

html_content

The current HTML content as a character string.

plot_element

The plot element to be converted to base64.

plots_size

An integer specifying the height of the plot.

section_index

An integer specifying the section index.

Value

The updated HTML content as a character string.