Learn R Programming

EDOIF (version 0.1.3)

plotMeanCIs: plotMeanCIs function

Description

plotMeanCIs is a support function for plotting mean confidence intervals.

Usage

plotMeanCIs(obj, fontSize = 15, rankFlag = TRUE)

Value

This function returns a list of an object of ggplot class.

pMeanCI

An object of ggplot class containing the plot of mean confidence intervals

Arguments

obj

is an object of EDOIF class that contains the results of ordering inference.

fontSize

is a font size of text for all plots.

rankFlag

is an option for including ranks of categories with in the plot: default is TRUE for including ranks.

Examples

Run this code
# Generate simulation data with 100 samples per categories

simData<-SimNonNormalDist(nInv=100)

# Performing ordering infernce from simData

resultObj<-EDOIF(simData$Values,simData$Group)

# Get a list of ggplot object of mean confidence intervals

ggplotList<-plotMeanCIs(obj=resultObj)

# Plot mean confidence intervals

plot(ggplotList$pMeanCI)

Run the code above in your browser using DataLab