Learn R Programming

ISCAM (version 1.0.0)

iscamaddt: Overlay a t Density Function on Histogram

Description

Overlay a t Density Function on Histogram

Usage

iscamaddt(
  x,
  df,
  main = "Histogram with t curve",
  xlab = deparse(substitute(x)),
  bins = NULL
)

Value

A histogram of x overlayed with an t density function.

Arguments

x

A numeric vector representing the data to be plotted.

df

A numeric value representing the degrees of freedom of x.

main

Optional title for the plot

xlab

Optional x-axis label for the plot

bins

Optional number of bins for the histogram.

Examples

Run this code
set.seed(0)
x <- rt(100, 30)
iscamaddt(x, 30)
iscamaddt(x, 30, main = "Your Active Title", xlab = "t Data", bins = 20)

Run the code above in your browser using DataLab