Displaying 1 result from an estimated 1 matches for "gcsemv".
Did you mean:
gcse
2008 Aug 08
1
Lattice: regression lines within grouped xyplot panels
Dear community,
I am looking for a possibility to draw 'regression lines' instead of
'smooth' lines in grouped xyplots. The following code should give you a
small example of the data structure.
library(lattice)
data(Gcsemv, package = "mlmRev")
# Creates artificial grouping variable ...
Gcsemv$Groups <-
ifelse(as.numeric(as.character(Gcsemv$school))>65000,
"Group1", "Group2")
xyplot(written ~ course | gender, data = Gcsemv,
type = c("g", "p"...