Displaying 2 results from an estimated 2 matches for "abliine".
Did you mean:
abline
2023 Nov 18
1
combine barchart and xyplot in lattice
...our), type = "l", lwd = 2,
col = 2, data = vehicles)
mybars + mylines
# This does not work. ?Lines are not correctly placed.
mylines <- xyplot(count ~ as.factor(hour), type = "l", lwd = 2,
col = 2, data = vehicles, panel = function(x, y, ...) {
panel.xyplot(x, y, ...)
panel.abliine(v = as.factor(c(9, 17)), lty = 2, col = "gray")
})
2023 Nov 18
1
combine barchart and xyplot in lattice
...ol = 2, data = vehicles)
>
> mybars + mylines
>
> # This does not work. Lines are not correctly placed.
> mylines <- xyplot(count ~ as.factor(hour), type = "l", lwd = 2,
> col = 2, data = vehicles, panel = function(x, y, ...) {
> panel.xyplot(x, y, ...)
> panel.abliine(v = as.factor(c(9, 17)), lty = 2, col = "gray")
> })
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-projec...