Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default plot() method #77

Closed
dhomme opened this issue Sep 28, 2015 · 0 comments
Closed

Default plot() method #77

dhomme opened this issue Sep 28, 2015 · 0 comments

Comments

@dhomme
Copy link

dhomme commented Sep 28, 2015

A default plot() method similar to print() would be a nice feature.

plot.R6 <- function(x, ...) {
  if (is.function(x$plot)) {
    x$plot(...)
  } else {
    stop(paste("No plot function defined in class: ", paste(class(s1), collapse = " > ")))
  }
}
@wch wch closed this as completed in f87fe29 Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant