> plot
function (x, y, ...)
UseMethod("plot")
<bytecode: 0x000000000826f240>
<environment: namespace:graphics>
If you type in plot
, you get the above. Note that the function takes two parameters.
Now I have a class, A
, and I'd like to give it its own plot
-method. So I can write
plot.A <- function(object)
but note that I only want a plot
-function that takes 1 argument (and not x, y
).
So what do I do?