[R] labelling plots with ancillary data in data.frame

2007-08-14 Thread Wesley Roberts
Hi All, I am busy using R to do some regression modelling and have been using plot(x,y,) to visualise my variables. I would now like to label my points using data stored in the data.frame used for the regression analysis. For example each of my data points is made up of a field measured forest

Re: [R] labelling plots with ancillary data in data.frame

2007-08-14 Thread Paul Hiemstra
Hi Wesley, Try the text() function. An example: a = rep(10,10) b = seq(1,10) plot(a,b) text(a,b, labels = b, pos = 4, offset = 0.7) ?text hth, Paul Wesley Roberts schreef: Hi All, I am busy using R to do some regression modelling and have been using plot(x,y,) to visualise my variables.

Re: [R] labelling plots with ancillary data in data.frame

2007-08-14 Thread Julian Burgos
Hi Wesley, You can use the text() function to add text to an existing plot. See ?text. Julian Wesley Roberts wrote: Hi All, I am busy using R to do some regression modelling and have been using plot(x,y,) to visualise my variables. I would now like to label my points using data