print.ggproto

0th

Percentile

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.

Usage
"print"(x, ..., flat = TRUE)
"format"(x, ..., flat = TRUE)
Arguments
x
A ggproto object to print.
...
If the ggproto object has a print method, further arguments will be passed to it. Otherwise, these arguments are unused.
flat
If TRUE (the default), show a flattened list of all local and inherited members. If FALSE, show the inheritance hierarchy.
Aliases
  • print.ggproto
  • format.ggproto
Examples
library(ggplot2) Dog <- ggproto( print = function(self, n) { cat("Woof!\n") } ) Dog cat(format(Dog), "\n")
Documentation reproduced from package ggplot2, version 2.2.1, License: GPL-2 | file LICENSE

Community examples

Looks like there are no examples yet.