Displaying 2 results from an estimated 2 matches for "tavg".
Did you mean:
tag
2010 Feb 14
1
Adding a regression line to an xyplot
Hi R users
> I am trying to add a regression line to a graph for "c" for factor 2
> only. Any suggestions?
>
library(lattice)
a=(1:10)
b=c(1:5,16:20)
c=as.factor(c(rep(1,5),rep(2,5)))
d=data.frame(a,b,c)
xyplot(a~b, pch=c(6,8),data = tavg, groups=d$c,
reg.line=lm, smooth=FALSE, type=c("p","g"),xlab="a",ylab="b")
> I would appreciate your help.
>
> Kind regards
>
> andy
>
> Andrew McFadden MVS BVSc
> Incursion Investigator
> Investigation & Diagnostic Centres...
2010 Aug 16
1
need of elegant data manipulation
Dear R users,
I seek for a more elegant manner to manipulate my data that that I
produced so far.
Data is in a data frame THC515.DATA -sample at the end of this mail- of
5 variables, a string and 4 continuous numeric variables.
I need to get the mean of two variables "Q" and "T" at the levels of a
third one "dP", individually for each level of "n".
I