change_color | R Documentation |
Change the shade of a figure
change_color(obj, ...)
## S3 method for class 'figure'
change_color(obj, ...)
obj |
The figure |
... |
other arguments |
Return the original figure with the inverted shade
Return the original figure with the inverted shade
change_color(figure)
: Change shade
Change the shade of a figure
# draw a square with inverted color
draw(change_color(square()))
draw(change_color(square()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.