Re: [R] using lapply and split to plot up subsets of a vector

2010-12-30 Thread karmakiller
Hi again, I have spent the last couple of days trying to build a function that will allow me to add to the multiple plots that I created with your advice. I have changed to plot(ln.o2con~lnbm,data=df) in my function and this works fine. On an individual plot I can fit quantile regressions

[R] using lapply and split to plot up subsets of a vector

2010-12-28 Thread karmakiller
Hi, I would like to be able to plot data from each of the sp.id on individual plots. At the moment I can plot all the data on one graph with the following commands but I cannot figure out how to get individual graph for each sp.id. i- function(df)plot(lnbm,ln.o2con,data=df) j-

[R] simple loop(?) analysing subsets

2010-07-18 Thread karmakiller
Hi All, I have a large data set with many columns of data. One of these columns is a species identifier and the remainder are variables such as temperature or mass. Currently I am carrying out a single regression on subsets of the data set, e.g. separated data sets with only the data from one