CombinedPlot
CombinedPlot.RdThis class represents a combined plot object that includes a plot and an optional table. It provides methods to get and set the plot and table objects, as well as to print the combined output.
Active bindings
plotObjectA ggplot object representing the main plot.
tableObjectA ggplot object representing the table.
relWidthsA numeric vector of length 2 specifying the relative widths of the plot and table.
Methods
Method new()
Usage
CombinedPlot$new(plotObject = ggplot(), tableObject = NULL)Examples
if (FALSE) { # \dontrun{
# Create a new CombinedPlot instance
combinedPlotInstance <- CombinedPlot$new(plotObject <- myPlotObject, tableObject <- myTableObject)
# Print the combined plot and table
print(combinedPlotInstance)
# or simply
combinedPlotInstance
} # }