gabriel.plot: the Gabriel's barplot (or (l-u)-plot)

Description Usage Arguments Author(s) References See Also Examples

View source: R/gabriel.plot.R

Description

Make the Gabriel's barplot, if, and only if, their bar intervals are disjoint, they are differ significantly. This function could also be used to plot error bar when the bar vector is imported as upper or lower margin.

Usage

1
gabriel.plot(x, f, upper, lower = upper, length = 0.1, ...)

Arguments

x

data vector

f

factor vector

upper

the upper margin of error bar

lower

the upper margin of error bar

length

the length of error bar

...

Arguments to be passed to methods, such as graphical parameters.

Author(s)

Miao YU

References

Gabriel, K.R., 1978. A Simple Method of Multiple Comparisons of Means. Journal of the American Statistical Association 73, 724.

See Also

rgabriel, barplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# equal numbers

g <- c(1:50)
f <- c(rep(1,10),rep(2,10),rep(3,10),rep(4,10),rep(5,10))
gabriel.plot(g,f,rgabriel(g,f))

# unequal numbers

g <- c(1:40)
f <- c(rep(1,3),rep(2,12),rep(3,15),rep(4,5),rep(5,5))
gabriel.plot(g,f,rgabriel(g,f))

rgabriel documentation built on May 29, 2017, 12:38 p.m.

Search within the rgabriel package
Search all R packages, documentation and source code