Format or print a ggproto object
If a ggproto object has a $print
method, this will call that method.
Otherwise, it will print out the members of the object, and optionally, the
members of the inherited objects.
## S3 method for class 'ggproto' print(x, ..., flat = TRUE) ## S3 method for class 'ggproto' format(x, ..., flat = TRUE)
x |
A ggproto object to print. |
... |
If the ggproto object has a |
flat |
If |
Dog <- ggproto( print = function(self, n) { cat("Woof!\n") } ) Dog cat(format(Dog), "\n")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.