Learn R Programming

fitPlotR (version 0.1.0)

plot_data: Plot Data Overview

Description

Generates a 2x2 plot layout showing: Histogram, Boxplot, Kernel Density, and TTT Plot.

Usage

plot_data(
  x,
  col = "steelblue",
  border = "black",
  transparency = 0.5,
  lwd = 2,
  breaks = "Sturges"
)

Value

NULL (plots are drawn)

Arguments

x

Numeric vector of data.

col

Color for plots (default "steelblue").

border

Border color for histograms/boxplots (default "black").

transparency

Transparency for filled areas (0-1, default 0.5).

lwd

Line width for plots (default 2).

breaks

Histogram breaks (default "Sturges").

Examples

Run this code
set.seed(123)
mydata <- rexp(100, 1)
plot_data(mydata, col = "darkblue", transparency = 0.35, lwd = 2)

Run the code above in your browser using DataLab