[R] Plotting symbols with two positions?

2006-11-09 Thread CG Pettersson
Thanks a lot to Demitris for a prompt answer some minutes ago on another tread (see below). To avoid excess mails on the list, I move onto next question: I have another small plotting problem that confuses me. I want to plot results from a field trial series, using the numbers of the trials as

Re: [R] Plotting symbols with two positions?

2006-11-09 Thread Dimitris Rizopoulos
try this: y - rnorm(16) plot(y, type = n) text(1:16, y, 1:16) Best, Dimitris - Original Message - From: CG Pettersson [EMAIL PROTECTED] To: Dimitris Rizopoulos [EMAIL PROTECTED] Cc: CG Pettersson [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Sent: Thursday, November 09, 2006 10:09

Re: [R] Plotting symbols with two positions?

2006-11-09 Thread Ted Harding
On 09-Nov-06 CG Pettersson wrote: Thanks a lot to Demitris for a prompt answer some minutes ago on another tread (see below). To avoid excess mails on the list, I move onto next question: I have another small plotting problem that confuses me. I want to plot results from a field trial

Re: [R] Plotting symbols with two positions?

2006-11-09 Thread Gabor Grothendieck
Aside from the answers to use text you could use letters instead of numbers which would allow you to continue to use a single character and might have advantages in terms of saving space on the chart: pch = letters[trial_no] pch = c(letters, LETTERS)[trial_no] pch = c(1:9, letters,

Re: [R] Plotting symbols with two positions?

2006-11-09 Thread CG Pettersson
Dear Dimitris, Thanks a lot, but I didn't really manage to apply it in my context, I first got an error message and then an ugly plot. I have also got the advice from Gabor Grothendieck to use letters instead of numbers, but I do prefer numbers as this is the normal way of referring to the

Re: [R] Plotting symbols with two positions?

2006-11-09 Thread Dimitris Rizopoulos
I think you need the following: attach(DAT.nr) plot(jd.s, jd.h, type = n) text(jd.s, jd.h, t_no) I hope it works. Best, Dimitris - Original Message - From: CG Pettersson [EMAIL PROTECTED] To: Dimitris Rizopoulos [EMAIL PROTECTED] Cc: CG Pettersson [EMAIL PROTECTED];