createPlot: Create Plot Function

View source: R/utils.R

createPlotR Documentation

Create Plot Function

Description

Creates various types of plots for data visualization in the StepReg Shiny application.

Usage

createPlot(plot_type_value, var_plot_value, data_value)

Arguments

plot_type_value

Character string specifying the type of plot to create. Options include: "Bar plot", "Box plot", "Correlation plot", "Density plot", "Dot plot", "Histogram", "QQ plot", "Scatter and Line plot".

var_plot_value

Character vector of variable names to plot.

data_value

Data frame containing the data to plot.

Value

A list of ggplot objects or a single ggplot object depending on the plot type.


StepRegShiny documentation built on Dec. 1, 2025, 9:07 a.m.