Re: [R] adding lines to multiple plot

2008-07-30 Thread Ben Bolker
Gary W gmail.com> writes: > > > Hi ben > > Thanks for that, the density lines have now worked, however i was hoping > that the labels would be the names of the columns in my original data set > not numeric. any advice how to do this? > > gary w > mapply(function(v,n) { hist(v,prob=TRUE

Re: [R] adding lines to multiple plot

2008-07-30 Thread Gary W
Hi ben Thanks for that, the density lines have now worked, however i was hoping that the labels would be the names of the columns in my original data set not numeric. any advice how to do this? gary w Ben Bolker wrote: > >> >> ##find unique column names in table >> variablenames<-unique(n

Re: [R] adding lines to multiple plot

2008-07-30 Thread Ben Bolker
Gary W gmail.com> writes: > > > Hi > > I am trying to add density lines to multiple histograms created using R. I > have managed to get all 18 lines on the last histogram in the series, > however, i cannot figure out how to get each line appear on the correct > histogram plot. I know in Mat

[R] adding lines to multiple plot

2008-07-30 Thread Gary W
Hi I am trying to add density lines to multiple histograms created using R. I have managed to get all 18 lines on the last histogram in the series, however, i cannot figure out how to get each line appear on the correct histogram plot. I know in Matlab there is a hold function, is there someth