static_ggplot_main-htmlReport-method {htmlreportR} | R Documentation |
This function generates a static ggplot for inclusion in an HTML report for an object of class "htmlReport".
id |
A character string specifying the identifier for the element of hash_vars that is taken. |
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 fields to include in the ggplot. |
func |
A function to preprocess data before plotting. |
plotting_function |
A function used for generating the ggplot. |
text |
Logical, indicating whether to convert table to text or a vector indicating the numeric fields. |
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 |
Generate static ggplot for HTML report
This function generates a static ggplot based on the provided data
and plot specifications. It first defines a wrapper function for ggplot
generation, then calls the static_plot_main
function to generate the
plot and include it in the HTML report object.