[R] xyplot

Christian Schulz ozric at web.de
Thu Jun 26 20:02:50 CEST 2003


IMHO you should try lattice
and play with the examples.......

library(lattice)
data(state)
## user defined panel functions
states <- data.frame(state.x77,
                     state.name = dimnames(state.x77)[[1]], 
                     state.region = state.region) 
xyplot(Murder ~ Population | state.region, data = states, 
       groups = as.character(state.name), 
       panel = function(x, y, subscripts, groups)  
       ltext(x=x, y=y, label=groups[subscripts], cex=.7, font=3))

regards,christian

----- Original Message ----- 
From: "jinn-ing Liou" <jliou at wisc.edu>
To: <R-help at stat.math.ethz.ch>
Sent: Thursday, June 26, 2003 6:57 PM
Subject: [R] xyplot


> I am doing group wise plots by using the following commands; it shows
> errors that I do not know how to fix it. Please help.
>  
>  
>  
> xyplot(within.2.special.care ~ agecat| mco.cms.ind, neuro, panel =
> function(x,y){
> + panel.grid()
> + panel.xyplot(x,y)
> + panel.loess(x,y, span =1)})
>  
> Error: couldn't find function "xyplot"
> 
> [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list