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

Comments

@dhomme
Copy link

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 in f87fe29 Jan 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.