univariate_diagnostic_plot: Diagnostic Plots for Univariate and Multivariate Data

View source: R/univariate_diagnostic_plot.R

univariate_diagnostic_plotR Documentation

Diagnostic Plots for Univariate and Multivariate Data

Description

Generates QQ plots, histograms with density overlays, boxplots, or scatterplot matrices for numeric data (vector, matrix, or data frame).

Usage

univariate_diagnostic_plot(
  data,
  type = c("qq", "histogram", "boxplot", "scatter"),
  title = NULL,
  interactive = FALSE
)

Arguments

data

A numeric vector, matrix, or data frame with observations in rows and variables in columns.

type

Character; type of plot. One of: "qq", "histogram", "boxplot", "scatter". Default selects the first.

title

Character; plot title.

interactive

Logical; if TRUE, renders the plot interactively using plotly.

Examples

## Not run: 
data <- iris[1:50, 1:3]
univariate_diagnostic_plot(data, type = "histogram")
univariate_diagnostic_plot(data, type = "qq")
univariate_diagnostic_plot(data, type = "boxplot")
univariate_diagnostic_plot(data, type = "scatter", interactive = TRUE)

## End(Not run)

MVN documentation built on June 10, 2025, 5:12 p.m.