plotmeanshack: plotmeanshack

Description Usage Arguments Author(s) Examples

Description

Hack of the plotmeans function (gplots package), to allow native scale on the x axis, if the associated grouping variable is numeric.

Usage

1
2
3
4
5
6
plotmeanshack(formula, data = NULL, subset, na.action, bars = TRUE, 
    p = 0.95, minsd = 0, minbar = NULL, maxbar = NULL, xlab = names(mf)[2], 
    ylab = names(mf)[1], mean.labels = FALSE, ci.label = FALSE, 
    n.label = TRUE, digits = getOption("digits"), col = "black", 
    barwidth = 1, barcol = "blue", connect = TRUE, ccol = col, 
    legends = names(means), xaxt, use.t = TRUE, nummeans=TRUE, ...)

Arguments

formula

see documentation of gplots::plotmeans

data

see documentation of gplots::plotmeans

subset

see documentation of gplots::plotmeans

na.action

see documentation of gplots::plotmeans

bars

see documentation of gplots::plotmeans

p

see documentation of gplots::plotmeans

minsd

see documentation of gplots::plotmeans

minbar

see documentation of gplots::plotmeans

maxbar

see documentation of gplots::plotmeans

xlab

see documentation of gplots::plotmeans

ylab

see documentation of gplots::plotmeans

mean.labels

see documentation of gplots::plotmeans

ci.label

see documentation of gplots::plotmeans

n.label

see documentation of gplots::plotmeans

digits

see documentation of gplots::plotmeans

col

see documentation of gplots::plotmeans

barwidth

see documentation of gplots::plotmeans

barcol

see documentation of gplots::plotmeans

connect

see documentation of gplots::plotmeans

ccol

see documentation of gplots::plotmeans

legends

see documentation of gplots::plotmeans

xaxt

see documentation of gplots::plotmeans

use.t

see documentation of gplots::plotmeans

nummeans

if TRUE, the independent variable (r.h.s.) in formula should be numeric

...

see documentation of gplots::plotmeans

Author(s)

Pierrick Bruneau

Examples

1
2
3
4
5
6
data(state)
plotmeanshack(state.area ~ state.region, nummeans=FALSE) # non-numeric independent variable
data(iris)
irisdat <- cbind(iris[,1:4], c(rep(1,50), rep(2,50), rep(5,50)))
names(irisdat)[5] <- "iris.class"
plotmeanshack(Sepal.Width ~ iris.class, data=irisdat, nummeans=TRUE) # (artificial) numeric variable

datautils documentation built on May 2, 2019, 8:56 a.m.