On 2010-12-18 07:50, e-letter wrote:
Ben Bolker
Sat, 18 Dec 2010 07:07:24 -0800
[... snip ...]
I am trying to create a chart like this
(http://www.b-eye-network.com/images/content/Fig4_3.jpg); so this is
not possible using R?
That looks an awful lot like what lattice's dotplot would
produce. So: have you tried dotplot() as Ben has suggested?
Peter Ehlers
dotchart(as.matrix(d[,-1]),labels=as.character(d[,1]))
dotchart(as.matrix(d[,c("values1","values2")]),labels=as.character(d[,1]))
## reshaping data:
library(reshape)
mdot<- melt(d)
## using the lattice package
library(lattice)
dotplot(value~category,groups=variable,data=mdot)
dotplot(value~variable,groups=category,data=mdot,auto.key=TRUE,
scales=list(y=list(log=10)))
## you could also use ggplot2 ...
?ggplot2
No documentation for 'ggplot2' in specified packages and libraries:
you could try 'help.search("ggplot2")'; seems I need to retrieve this
package first. Thanks for the suggestion.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.