Description Usage Arguments Details Value See Also Examples
This function draws the line that defines a rule on the plot created by
plot_rgb_plane()
.
1 |
rule |
an object of class |
label |
a string to label the line. It is attached at the coordinates of the second point used to define the line. |
... |
additional graphical parameters passed to the underlying
|
The function uses the information stored in the pixel_rule
object
to plot the line.
Use the ... to set the colour and other characteristics of the line. Use
any character string understood by col2rgb()
.
Labels can be added to the rule using label_rule()
.
The function does not return any value.
plot_rgb_plane
, define_rule
,
label_rule
col2rgb
1 2 3 4 5 | rule_01 <- define_rule("rule_01", "g", "b",
list(c(0.345, 1/3), c(0.40, 0.10)), "<")
plot_rgb_plane("g", "b")
plot_rule(rule_01, col = "green")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.