corr.plot: Correlation Coefficients and Scatter Plots

Description Usage Arguments Value Examples

View source: R/corr.plot.R

Description

Correlation Coefficients and Scatter Plots of Discrete Random variables

Usage

1
corr.plot(X, Mt, item, dig = 4, prt = TRUE, pprt = FALSE, plot = FALSE)

Arguments

X

Sample space vector of X

Mt

Plot title

item

Names of random variables

dig

Number of effective digits, Default: 5

prt

Print the result? Default: TRUE

pprt

Print frequency tables? Default: FALSE

plot

Plot the PDF and scatter plots? Default: FALSE

Value

None.

Examples

1
2
3
4
5
6
7
8
9
S <- rolldie2(4)
item <- c("Sum", "Max", "Min", "Range")
X <- list()
X[[1]] <- apply(S, 1, sum)
X[[2]] <- apply(S, 1, max)
X[[3]] <- apply(S, 1, min)
X[[4]] <- X[[2]] - X[[3]]
Mt <- paste("PDF of", item, "in 4 Dice")
corr.plot(X, Mt, item, pprt = T, plot = T)

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.