R-alpha: dotplot()

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Wed, 26 Mar 1997 14:51:23 +0100


Date: Wed, 26 Mar 1997 14:51:23 +0100
Message-Id: <199703261351.OAA07697@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: dotplot()

It seems that the current (0.16.1 as well as 0.50 beta 5) version of
dotplot() ignores the labels and groups arguments in the matrix case.

I haven't looked into this very carefully, but it seems that one can
take care of the `labels' part by replacing

	labels <- rownames(x)

by

	if(is.null(labels))
		labels <- rownames(x)

and the groups part by e.g. replacing

	groups <- col(x, as.factor=TRUE)

by

	if(is.null(groups))
		groups <- col(x, as.factor=TRUE)
	else 
		groups <- factor(col(x), labels = groups)

but the latter is not really fool-proof.

Also, the documentation does not explain the groups argument.

-k
	
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-