powered by
Apply a change in the shading of the figure
shade(fig, n, rule, ...)# S3 method for figure shade(fig, n = 1, rule = "shade", ...)
# S3 method for figure shade(fig, n = 1, rule = "shade", ...)
An object of class figure with different shading characteristics
The figure on which the rule is applied
integer, defines the color of the shading. Default is 1 (white). Other options are 2 (grey) and 3 (black)
character, defines the rule for shading the figure
Other arguments
shade(figure): Change the shade of a figure
shade(figure)
# draw default triangle draw(triangle()) # make it grey draw(shade(triangle(), 2)) # draw default triangle draw(triangle()) # make it grey draw(shade(triangle(), 2))
Run the code above in your browser using DataLab