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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to