Skip to content
Prev 3907 / 12125 Next

[R-pkg-devel] Registered S3 methods from standard package

It doesn't work for all plot.XXX for the reasons you describe. But my
use case was a bit more modest than that, I just want to make the
standard plotting functions for numeric data a bit nicer.

devtools::install_github("jumpingrivers/prettyB")
library(prettyB)
plot(rnorm(10), rnorm(10), xlab ="x", main = "A title")

But, if a function just calls `plot()` again, everything works, e.g.
plot.lm is fine

plot(lm(1:10 ~ rnorm(10)), which = 1)

Thanks