Re: [R] 2 functions in xyplot

2009-11-20 Thread Paul Hiemstra
RICHARD M. HEIBERGER wrote: "Unexpected symbol" often means missing punctuation. In this case, it looks like panel=function(){panel.xyplot(Kalibrierung$Spannung,Kalibrierung $Magnetfeld)panel.abline(reg=test)} this argument is missing a semi-colon ";" before "panel.abline". panel=function(){p

Re: [R] 2 functions in xyplot

2009-11-19 Thread RICHARD M. HEIBERGER
"Unexpected symbol" often means missing punctuation. In this case, it looks like panel=function(){panel.xyplot(Kalibrierung$Spannung,Kalibrierung $Magnetfeld)panel.abline(reg=test)} this argument is missing a semi-colon ";" before "panel.abline". panel=function(){panel.xyplot(Kalibrierung$Spann

[R] 2 functions in xyplot

2009-11-19 Thread Markus Häge
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<-