Displaying 1 result from an estimated 1 matches for "sexsu".
Did you mean:
sensu
2007 Mar 27
1
impose points on lattice plot
R-help,
I'm using the lattice package to plot 2 variables (vekt ~ aldur)
conditioned to a third (kyn * 2 categories).
I use the following:
xyplot(vekt ~ aldur|kyn, , data = sexSu)
I want to superimpose the average(vekt) by 'aldur'
conditioned to kyn by using something like:
xyplot(vekt~aldur|kyn, subset = aldur <= 12
, data = sexSu, panel = function(x, y)
{
panel.xyplot(x, y)
panel.points(x,mean(y),col=2,cex=2 )
})
but th output...