Re: [R] Annoteting graphs using text

2003-11-07 Thread Don MacQueen
Try using paste() instead of cat() in text(20,60,cat("Lin's Concordance Coefficient = ",lincc)) The last expression in your function will be returned as the value of the function; that is the best way to get results out of a function and available for use outside the function. -D

RE: [R] Annoteting graphs using text

2003-11-07 Thread Liaw, Andy
You want to use paste() inside text(), not cat(). Andy > From: Craig H. Ziegler [mailto:[EMAIL PROTECTED] > > Dear All, > > I am new to R and am trying to learn how to create functions > using R. Below is code which calculates Lin's Concordance > Coefficient. After I calculate the coefficie

[R] Annoteting graphs using text

2003-11-07 Thread Craig H. Ziegler
Dear All, I am new to R and am trying to learn how to create functions using R. Below is code which calculates Lin's Concordance Coefficient. After I calculate the coefficient I want to create a scatter plot which annotates the coefficient along with preceding text onto the plot. The below code d