[R] 2 functions in xyplot
Markus Häge
markus_haege at gmx.de
Fri Nov 20 06:33:20 CET 2009
Hello,
after a long night I don't find any mistake anymore in my xyplot and it
doesn't work. I want to make a scatterplot with regression line.
Each of it alone is possible but both arguments together are not
working:
"unexpected symbol...
test<-lm(Magnetfeld~Spannung,data=Kalibrierung)
kalib<-xyplot(Magnetfeld~Spannung,data=Kalibrierung,xlab=list(label="Spannung (mV)",fontsize=20),ylab=list(label="Magnetfeld (T)",fontsize=20),scales=list(cex=1.5),
panel=function(){panel.xyplot(Kalibrierung$Spannung,Kalibrierung
$Magnetfeld)panel.abline(reg=test)})
I tried different arguments in "function()" and the "panel...()" but
without sucess. It's always a problem with two plots in one.
But I need it, it's very important for other cases as well
thanks
Markus
More information about the R-help
mailing list