Re: [R] Boxplot problem

2011-03-09 Thread Peter Ehlers
On 2011-03-09 00:17, Lao Meng wrote: No,even there's only one observation,boxplot can still be drawn. x<-1 boxplot(x) or x<-1:3 boxplot(x) ... Well, yes, it *can* be drawn. But it shouldn't be. A boxplot based on fewer than, say, 10 values is just nonsense. Even 10 is pretty dubious. Anyway,

Re: [R] Boxplot problem

2011-03-09 Thread Gaurav Kumar
, India. --- On Wed, 9/3/11, Lao Meng wrote: From: Lao Meng Subject: Re: [R] Boxplot problem To: "Dennis Murphy" Cc: gau...@gauravkumar.org, "R help" Date: Wednesday, 9 March, 2011, 1:47 PM No,even there's only one observation,boxplot can still be drawn.   x<-1 boxp

Re: [R] Boxplot problem

2011-03-09 Thread Lao Meng
No,even there's only one observation,boxplot can still be drawn. x<-1 boxplot(x) or x<-1:3 boxplot(x) ... 2011/3/9 Dennis Murphy > Hi: > > A box plot is based on a five number summary, so you need at a minimum five > observations (and preferably at least twice that) to make a box plot a > v

Re: [R] Boxplot problem

2011-03-09 Thread Dennis Murphy
Hi: A box plot is based on a five number summary, so you need at a minimum five observations (and preferably at least twice that) to make a box plot a viable summary measure for a continuous variable. Consider other graphical summaries for these data - perhaps a strip chart or a simple scatterplot

[R] Boxplot problem

2011-03-08 Thread Gaurav Kumar
Dear R-user, I'm facing problem to draw boxplot. I can draw my boxplot but the space option is not working for me. I've no clues where i'm doing wrong my data is as matrix as shown below:     [,1] [,2] [1,]   98  60 [2,]   96  70 [3,]   95  80 and i'm plotting as barplot(height=c(data[1,],

Re: [R] boxplot problem

2008-06-22 Thread HBaize
The problem is dat is a data object, not a function. You used the syntax for a function "dat(1:19)" What you probably want is: gc <- dat[,1:19] act <- dat[,20:39] That will select columns 1 through 19 and put them into the object gc, and act will get columns 20 through 39. Is that what you wa

Re: [R] boxplot problem

2008-06-21 Thread jim holtman
What is this statement supposed to do: gc<-dat(1:19) You are trying to call the function 'dat' with a vector of 19 values. Is this what you intended? If the function 'dat' does not exist, that is why you are getting the error. On Sat, Jun 21, 2008 at 2:46 AM, Paul Adams <[EMAIL PROTECTED]> wr

[R] boxplot problem

2008-06-20 Thread Paul Adams
Hello everyone, I am trying to plot a boxplot but am coming up with the error : "could not find function dat" I have used the following code. dat<-read.table(file="C:\\Documents and Settings\\...txt",header=T,row.names=1,blank.lines.skip=F,na.strings="NA") file.show(file="C:\\Documents and Set