To: "Sebastien Bihorel" < [ mailto:sebastien.biho...@cognigencorp.com |
sebastien.biho...@cognigencorp.com ] >
Cc: "R-help" < [ mailto:r-help@r-project.org | r-help@r-project.org ] >
Sent: Monday, June 18, 2018 2:28:21 PM
Subject: Re: [R] Porbably bug in panel.abl
gnigencorp.com> wrote:
>
> No, the intercept a^2 f the abline is exactly the upper limit of the data,
> so it is in the range.
>
> --
> *From: *"Bert Gunter"
> *To: *"Sebastien Bihorel"
> *Cc: *"R-help"
>
No, the intercept a^2 f the abline is exactly the upper limit of the data, so
it is in the range.
From: "Bert Gunter"
To: "Sebastien Bihorel"
Cc: "R-help"
Sent: Monday, June 18, 2018 2:28:21 PM
Subject: Re: [R] Porbably bug in panel.abline
Note that
Note that:
xyplot(
y~x,
data = data,
type = 'l', col="blue",
panel = function(x,y,...){
panel.xyplot(x,y,...)
panel.abline(c(a^2-1,-1), col="red")
}
)
works. The problem is a^2 is just above the "drawable" y axis limit (it is
the intercept of the line at x=0 with slope
Hi,
I recently encountered situations in which reference lines are not drawn with
the lattice panel.abline function. Please, consider the following example code:
require(lattice)
a <- runif(1,0,100)
data <- data.frame(x=c(0,a^2), y=c(0,a^2))
xyplot(
y~x,
data = data,
type = 'l',
pan
5 matches
Mail list logo