Learn R Programming

StepRegShiny (version 1.6.1)

createPlot: 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)

Value

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

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.