Re: [R] error in barplot

2013-05-09 Thread Jeff Newmiller
I am surprised David failed to comment on your choice of variable name. "sd" is an extremely commonly-used function, and defining a variable with that name will make it difficult for you to use that function. "data" is another common function. Some safer options would be "dta" or "sdata". If in

Re: [R] error in barplot

2013-05-09 Thread Jim Lemon
On 05/10/2013 07:22 AM, Carol Van Hulle wrote: Hi all, I am trying to create a barplot for the following data: ssmsm, ssaudmn, sstacmn .35, .93, .63 1.9, 1.51., 1.8 .78, 1.6, 1.24 1.10, 1.60, 1.24 I used the following code: sd<-read.table("dat.csv", header=T, sep=",") barplot(as.mat

Re: [R] error in barplot

2013-05-09 Thread David Winsemius
On May 9, 2013, at 2:22 PM, Carol Van Hulle wrote: > Hi all, > > I am trying to create a barplot for the following data: > > ssmsm, ssaudmn, sstacmn > .35, .93, .63 > 1.9, 1.51., 1.8 > .78, 1.6, 1.24 > 1.10, 1.60, 1.24 > > I used the following code: > sd<-read.table("dat.csv", header=T, s

[R] error in barplot

2013-05-09 Thread Carol Van Hulle
Hi all, I am trying to create a barplot for the following data:  ssmsm, ssaudmn, sstacmn  .35, .93, .63  1.9, 1.51., 1.8  .78, 1.6, 1.24  1.10, 1.60, 1.24 I used the following code: sd<-read.table("dat.csv", header=T, sep=",") barplot(as.matrix(sd), main="Figure 1", ylab= "Mean", beside=TRUE,