Displaying 1 result from an estimated 1 matches for "useroutflow".
2009 Apr 30
1
Hmisc: xYplot and panel.lines
...nal plot used, i.e. the graph does not work at all.
My code:
pfunc <- function(x,y,...) {
panel.xYplot(x, y, ...)
panel.abline(h=4.0, col = "grey") # works fine
panel.lines(-d$chosenValveSetting, col="orange") # in the wrong
place
}
xYplot(I(AmountInTank) + I(-UserOutFlow+UserInFlow) + I(EnvirInFlow) ~
Time.Step, data=subset(h, Version=="Linear increase"), nx=F,
method=smean.cl.boot, type='b',lty.bands=c(2,2), ylim=c(-20,20),
panel=pfunc)
What am I doing wrong?
Hmisc 3.6.0, but older versions reacted similarly.
Thanks for your help!...