[R] Question about Title

2010-02-17 Thread Lu Wang
Hi, I want to produce a pie chart with titles. I used the following code. So it created a pie chart for the percentage of the score for ID=002. ID - c(001,001,002,002,002,003,003,003,004,004,005,005,006) test - c(A,B,A,B,C,A,B,C,A,B,A,B,A) score - c(60,90,32,56,89,45,77,82,68,79,56,77,90)

Re: [R] Question about Title

2010-02-17 Thread David Winsemius
On Feb 17, 2010, at 1:06 PM, Lu Wang wrote: Hi, I want to produce a pie chart with titles. I used the following code. So it created a pie chart for the percentage of the score for ID=002. ID - c (001 ,001 ,002,002,002,003,003,003,004,004,005,005,006) test -

Re: [R] Question about Title

2010-02-17 Thread David Winsemius
On Feb 17, 2010, at 1:30 PM, David Winsemius wrote: On Feb 17, 2010, at 1:06 PM, Lu Wang wrote: Hi, I want to produce a pie chart with titles. I used the following code. So it created a pie chart for the percentage of the score for ID=002. ID - c (001 ,001

Re: [R] Question about Title

2010-02-17 Thread Ista Zahn
Hi Lu, Just store the id number as a variable at the top of your script, and modify the title() call as shown below. score.id - 003 ID - c(001,001,002,002,002,003,003,003,004,004,005,005,006) test - c(A,B,A,B,C,A,B,C,A,B,A,B,A) score - c(60,90,32,56,89,45,77,82,68,79,56,77,90) mydata -

Re: [R] Question about Title

2010-02-17 Thread David Winsemius
Good catch, Dennis. Thanks for permission copy this to the list to set the record straight. -- David. On Feb 17, 2010, at 9:34 PM, Dennis Murphy wrote: Hi David: I don't know if anyone corrected you on your use of bquote in the title below, but plot(1,1) title(main= bquote(ss~is sum of