# NOT RUN {
## xysplom syntax options
tmp <- data.frame(y=rnorm(12), x=rnorm(12), z=rnorm(12), w=rnorm(12),
g=factor(rep(1:2,c(6,6))))
tmp2 <- tmp[,1:4]
xysplom(y + w ~ x , data=tmp, corr=TRUE, beta=TRUE, cartesian=FALSE, layout=c(1,2))
xysplom(y + x ~ z | g, data=tmp, layout=c(2,2))
xysplom(y + x ~ z | g, data=tmp, cartesian=FALSE)
xysplom(w + y ~ x + z, data=tmp)
xysplom(w + y ~ x + z | g, data=tmp, layout=c(2,4))
xysplom(w + y ~ x + z | g, data=tmp, cartesian=FALSE)
# }
# NOT RUN {
## xyplot in R has many similar capabilities with xysplom
if.R(r=
xyplot(w + z ~ x + y, data=tmp, outer=TRUE)
,s=
{}
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab