Thanks Mathieu and Jim,
That worked!
From: Jim Lemon
Cc: r
Sent: Friday, April 17, 2009 7:45:39 AM
Subject: Re: [R] error bars in matplot
Tim Smith wrote:
> Hi,
>
> I was trying to get error bars in my matplot. I looked at an earlier thread,
Tim Smith wrote:
Hi,
I was trying to get error bars in my matplot. I looked at an earlier thread,
and the sample code that I made is:
#--
library(plotrix)
mat1 <- matrix(sample(1:30,10),nrow=5,ncol=2)
ses <- matrix(sample(1:3,10,replace=T),nrow=5,ncol=2)
vect <- seq(20,100,20)
Hi Tim,
there are a couple of problems in your example.
(1) The most important is that your 'x' values for the matplot
are 1:5 (that is row numbers of your mat1 matrix)
and are seq(20,100,20) (that is, your vect vector) for your error bars.
Error bars are thus plotted outside the plotting are
Hi,
I was trying to get error bars in my matplot. I looked at an earlier thread,
and the sample code that I made is:
#--
library(plotrix)
mat1 <- matrix(sample(1:30,10),nrow=5,ncol=2)
ses <- matrix(sample(1:3,10,replace=T),nrow=5,ncol=2)
vect <- seq(20,100,20)
rownames(mat1) <-
4 matches
Mail list logo