Learn R Programming

htmlreportR (version 1.0.0)

static_plot_main-htmlReport-method: Generate static plot for HTML report

Description

This function generates a static plot for inclusion in an HTML report for an object of class "htmlReport".

Arguments

id

A character string specifying the identifier for the plot included in hash_vars.

header

Logical, indicating whether the dataset has a header row.

row_names

Logical, indicating whether to include row names.

transpose

Logical, indicating whether to transpose the dataset.

smp_attr

A list of attributes for samples.

var_attr

A list of attributes for variables.

fields

A character vector specifying the fields to include in the plot.

func

A function to preprocess data before plotting.

plotting_function

A function used for generating the plot.

text

Logical, indicating whether to convert table to text or a vector indicating the numeric fields.

custom_format

Logical, indicating if id correspond to a table or a custom object

width

plot width

height

plot height

size_unit

units in plot size

img_properties

string including html properties of img

resizable

logical indicating if plot must be resizable

classic_R_plot

logical indicating if is using classic plot() R function

Details

Generate static plot for HTML report

This function generates a static plot based on the provided data and plot specifications. It first retrieves the data frame for plotting using the provided options, preprocesses the data if a preprocessing function is specified, generates the plot using the provided plotting function, and then adds the plot to the HTML report object.