Re: [R] plotting regression line in with lattice

2012-01-14 Thread matteo dossena
Weidong, thanks for the suggestion, but i also need to show to which trt each point belongs to. I had my problem solved by the way. I've been told to add a group subscript object within the panel function, and than use panel.points to plot the original data as data points and panel.lines to dra

Re: [R] plotting regression line in with lattice

2012-01-13 Thread Weidong Gu
Hi, Since trt is a factor, you use it for indexing. try just delete in the code fill <- my.fill[combined$trt[subscripts]] Weidong Gu On Fri, Jan 13, 2012 at 11:30 AM, matteo dossena wrote: > #Dear All, > #I'm having a bit of a trouble here, please help me... > #I have this data > set.seed(4) >

[R] plotting regression line in with lattice

2012-01-13 Thread matteo dossena
#Dear All, #I'm having a bit of a trouble here, please help me... #I have this data set.seed(4) mydata <- data.frame(var = rnorm(100), temp = rnorm(100), subj = as.factor(rep(c(1:10),5)), trt = rep(c("A","B"), 50)) #and this model tha

Re: [R] plotting regression line

2008-06-14 Thread David Arnold
Linda, Been working on that: http://msenux.redwoods.edu/mathdept/R/TransformingData.php Along with some other activities: http://msenux.redwoods.edu/mathdept/R/index.php David Arnold http://online.redwoods.edu/instruct/darnold On Jun 14, 2008, at 2:51 AM, **linda** wrote: > > Hello, > I'm tr

[R] plotting regression line

2008-06-14 Thread **linda**
Hello, I'm trying to plot an exponential regression line through my data (scatterplot with trend line), but can't find a way to do that. it is to be the best fit possible. -- View this message in context: http://www.nabble.com/plotting-regression-line-tp17837683p17837683.html Sent from the R hel