ggPermHist: Permutation Histograms

Description Usage Arguments See Also Examples

View source: R/plots.R

Description

The ggPermHist function generates a histogram of the permutation results as generated by cfPermute.

Usage

1
2
ggPermHist(permObj, density = FALSE, percentiles = FALSE, mean = FALSE, 
           median = FALSE)

Arguments

permObj

The permutation object as generated by cfPermute

density

Boolean value, by default equal to FALSE. If density = FALSE, the histogram depicts frequencies, the counts component of the result. Instead, for density = TRUE, probability densities are plotted.

percentiles

Boolean value, by default equal to FALSE. If percentiles = TRUE, the upper and lower percentiles of the distribution are depicted in the plot.

mean

Boolean value, by default equal to FALSE. If mean = TRUE, the mean of the distribution is depicted in the plot.

median

Boolean value, by default equal to FALSE. If median = TRUE, the median of the distribution is depicted in the plot.

See Also

ggEnsHist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
data(iris)

irisClass <- iris[,5]
irisData  <- iris[,-5]

permObj <- cfPermute(irisData, irisClass, bootNum = 10, ensNum = 20, permNum = 5, 
                     parallel = TRUE, cpus = 4, type = "SOCK")

# Basic histogram of the averaged test accuracies during permutation 
ggPermHist(permObj)

# Density plot 
ggPermHist(permObj, density=TRUE)

# Density plot that highlights additional descriptive statistics
ggPermHist(permObj, density=TRUE, percentiles = TRUE, mean = TRUE)
ggPermHist(permObj, density=TRUE, percentiles = TRUE, median = TRUE)

## End(Not run)

classyfire documentation built on May 29, 2017, 11:05 p.m.