Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-12 Thread Jim Lemon
On 10/12/2009 01:53 AM, zhijie zhang wrote: Thanks. I think there may be no easy method to achive it. library(lattice) barchart(Titanic, scales = list(x = "free"),auto.key = list(title ="Survived"),layout=c(4,1),horizontal = FALSE) The above method generates four graphs, two graphs in the l

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-11 Thread zhijie zhang
Thanks. I think there may be no easy method to achive it. library(lattice) barchart(Titanic, scales = list(x = "free"),auto.key = list(title ="Survived"),layout=c(4,1),horizontal = FALSE) The above method generates four graphs, two graphs in the left are for children's male and female,respectiv

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-11 Thread Peter Ehlers
zhijie zhang wrote: Thanks for your ideas and suggestions. I need to point out that most of us will create the Clustered-Stacked Column Chart in the matrix layout as David gave above, but here i hope to display the graph side by side as the example in the link http://peltiertech.com/Excel/Cha

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-10 Thread zhijie zhang
Thanks for your ideas and suggestions. I need to point out that most of us will create the Clustered-Stacked Column Chart in the matrix layout as David gave above, but here i hope to display the graph side by side as the example in the link http://peltiertech.com/Excel/ChartsHowTo/ClusterStack.ht

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-10 Thread Peter Ehlers
I think you're missing the point. David _did_ show you how to create a graph showing 4 clusters of stacked barcharts. If you want them side-by-side instead of in the matrix layout David gave, use the layout= argument. -Peter Ehlers zhijie zhang wrote: Hi David, Your codes are for stacked cha

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-10 Thread David Winsemius
I gave you more than you deserved. You provided no data and a link to what appeared to me to be a rather ugly looking chart. I gave you the help examples from the lattice equivalent. The barchart (stacked column chart in your termnology) is "clustered" although it happens to be presented in

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-10 Thread zhijie zhang
Hi David, Your codes are for stacked chart. Actually, i hope to Create a Clustered-Stacked Column Chart, which means that a chart will combine the traits of stacked chart and clustered chart, see the example in the page http://peltiertech.com/Excel/ChartsHowTo/ClusterStack.html. Thanks. 2009/10

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-09 Thread David Winsemius
library(lattice) barchart(Titanic, scales = list(x = "free"), auto.key = list(title = "Survived")) Or if you prefer vertical: barchart(Titanic, scales = list(x = "free"), auto.key = list(title = "Survived"), horizontal=FALSE) There are adjustments available to the space betwe

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-09 Thread zhijie zhang
Thanks a lot. Maybe someone else has the method to solve that. 2009/10/9 John Kane > I don't think I've seen an R version, probably because the technique is not > very good for displaying data. > > Have a look at http://chartsgraphs.wordpress.com/tag/r-and-excel/ for an > alternative method of

Re: [R] Creating a Clustered-Stacked Column Chart

2009-10-09 Thread John Kane
I don't think I've seen an R version, probably because the technique is not very good for displaying data. Have a look at http://chartsgraphs.wordpress.com/tag/r-and-excel/ for an alternative method of displaying the data using lattice. --- On Fri, 10/9/09, zhijie zhang wrote: > From: zhiji