Skip to content
Prev 453 / 12125 Next

[R-pkg-devel] Redefinition of generic for plot function breaks plot.formula

Why do you even need to take over `plot`, `plot.default`? You can just
register/export the plot.data.frame method from our package without
touching the generic or default method. The part of WRE that you refer to
is about making functions that are *not* S3 methods in one of base R or
it's packages into S3 generics. You are just providing a method for an
existing generic so you don't need to follow that code.

That said, it wouldn't be good form to fundamentally alter the way
plot.data.frame worked as users might expect certain functionality.

HTH

G
On 31 August 2015 at 04:03, Benjamin Hofner <benjamin.hofner at fau.de> wrote: