Could someone tell me how to add a text line to lattice plot.
My code is:
xyplot(Neff~Eeff,data=phuong,panel=mypanel,
col="black",
pch=18,xlab="Energy efficiency (%)",
ylab = "Nitrogen efficiency (%)", main="(a)")
Here pane=mypanel
is to add an abline.
I want to add a linear regression equation between Eeff and Neff to their plot.
Thanks!
?panel.text
, a function which you can add to yourmypanel
function. – BenBarnes