Re: [R] numerical subscripts in a loop in a plot

2010-02-01 Thread Alexander Nervedi
Thanks David and Eik. They both work really well! > CC: r-help@r-project.org > From: dwinsem...@comcast.net > To: alexne...@hotmail.com > Subject: Re: [R] numerical subscripts in a loop in a plot > Date: Mon, 1 Feb 2010 12:59:19 -0500 > > > On Feb 1, 2010, at 12:40 PM,

Re: [R] numerical subscripts in a loop in a plot

2010-02-01 Thread David Winsemius
On Feb 1, 2010, at 12:40 PM, Alexander Nervedi wrote: Hi R Graphics Gurus I am unable to figure out this issues with unevaluated expressions. I'm trying to create a graphic where I calculate the residual from a regression and want to mark each residual with its observation number. So so

Re: [R] numerical subscripts in a loop in a plot

2010-02-01 Thread Eik Vettorazzi
Hi Alexander, there is a simple solution using bquote for(i in 1:10){ text(i, 0,bquote(epsilon[.(i)])) } hth. Alexander Nervedi schrieb: Hi R Graphics Gurus I am unable to figure out this issues with unevaluated expressions. I'm trying to create a graphic where I calculate the residual fro

[R] numerical subscripts in a loop in a plot

2010-02-01 Thread Alexander Nervedi
Hi R Graphics Gurus I am unable to figure out this issues with unevaluated expressions. I'm trying to create a graphic where I calculate the residual from a regression and want to mark each residual with its observation number. So something like plot(0,0, type = "n", xlim = c(0,10)) for(i in 1