create_qq_plot: Create a QQ Plot

View source: R/Visualizations_general.R

create_qq_plotR Documentation

Create a QQ Plot

Description

This function generates a quantile-quantile (QQ) plot using ggplot2.

Usage

create_qq_plot(
  x,
  y,
  x_title = "Theoretical Quantiles",
  y_title = "Sample Quantiles",
  title = "QQ Plot",
  theme = theme_bw(base_size = 14)
)

Arguments

x

Not used (for flexibility).

y

The sample data for which you want to create the QQ plot.

x_title

The title for the x-axis.

y_title

The title for the y-axis.

title

The title for the plot.

Value

A ggplot object representing the QQ plot.

Examples

set.seed(123)
sample_data <- rnorm(100)
qq_plot <- create_qq_plot(NULL, sample_data, "Custom X-axis Title", "Custom Y-axis Title", "Custom QQ Plot Title")
print(qq_plot)


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.