Re: [R] Histogram for grouped data in R

2009-01-25 Thread Mendiburu, Felipe (CIP)
in/redir.asp?URL=http://tarwi.lamolina.edu.pe/~fmendiburu> From: r-help-boun...@r-project.org on behalf of Vincent Goulet Sent: Fri 1/23/2009 10:36 AM To: darthgervais Cc: r-help@r-project.org Subject: Re: [R] Histogram for grouped data in R Le ven. 23 janv. à 0

Re: [R] Histogram for grouped data in R

2009-01-25 Thread Mendiburu, Felipe (CIP)
arthgervais Sent: Fri 1/23/2009 8:55 AM To: r-help@r-project.org Subject: [R] Histogram for grouped data in R I have grouped data in this format Size -- Count 0-10 -- 15 10-20 -- 25 20-50 -- 10 50-100 -- 5 I've been trying to find a way to set this up with the proper histogram height

Re: [R] Histogram for grouped data in R

2009-01-24 Thread Yonathan (Jon) Anson
The category widths are not equal. Surely, what you mean is: x <- c(15,25,rep(10/3,3),rep(5/5, 5)) names(x) <- c('0-10','10-20','','20-50',rep('',3), '50-100', '', '') barplot(x,space=0, xlab='Size', ylab='Count', border = NA, col=c(1,2, rep(3,3), rep(4,5))) :-) Jon Anson Jorge Ivan Velez

Re: [R] Histogram for grouped data in R

2009-01-23 Thread Jorge Ivan Velez
Hi, Try this: x<-c(15,25,10,5) names(x)<-c('0-10','10-20','20-50','50-100') barplot(x,space=0,xlab='Size',ylab='Count',col=1:4) See ?barplot for more information. HTH, Jorge On Fri, Jan 23, 2009 at 8:55 AM, darthgervais wrote: > > I have grouped data in this format > > Size -- Count > 0-1

Re: [R] Histogram for grouped data in R

2009-01-23 Thread Vincent Goulet
Le ven. 23 janv. à 08:55, darthgervais a écrit : I have grouped data in this format Size -- Count 0-10 -- 15 10-20 -- 25 20-50 -- 10 50-100 -- 5 I've been trying to find a way to set this up with the proper histogram heights, but can't seem to figure it out. So any help would be much app

[R] Histogram for grouped data in R

2009-01-23 Thread darthgervais
I have grouped data in this format Size -- Count 0-10 -- 15 10-20 -- 25 20-50 -- 10 50-100 -- 5 I've been trying to find a way to set this up with the proper histogram heights, but can't seem to figure it out. So any help would be much appreciated! -- View this message in context: http://www