View source: R/univariate_diagnostic_plot.R
univariate_diagnostic_plot | R Documentation |
Generates QQ plots, histograms with density overlays, boxplots, or scatterplot matrices for numeric data (vector, matrix, or data frame).
univariate_diagnostic_plot(
data,
type = c("qq", "histogram", "boxplot", "scatter"),
title = NULL,
interactive = FALSE
)
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. |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.