Skip to content

Instantly share code, notes, and snippets.

@kevinushey
Created September 4, 2014 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinushey/5124832399c95a28d515 to your computer and use it in GitHub Desktop.
Save kevinushey/5124832399c95a28d515 to your computer and use it in GitHub Desktop.
Clobbering plot with your own S4 generic
setGeneric("plot", function(x, ...) {
standardGeneric("plot")
})
setMethod("plot", list(x = "ANY"), function(x, ...) {
UseMethod("plot")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment