rule_01 <- pixel_rule("rule_01", "g", "b",
list(c(0.1, 0.8), c(0.40, 0.10)), "<")
plot_rgb_plane("g", "b")
# The rule is represented as a green line
plot_rule(rule_01, col = "green")
# And the label is added in three different positions by passing col and adj
# to the underlying function
label_rule(rule_01, label = expression('R'[1]*''), shift = c(0,0),
col = 'black', adj = 1.5)
label_rule(rule_01, label = expression('R'[1]*''), shift = c(0.2, -0.4),
col = 'blue', adj = 0)
label_rule(rule_01, label = expression('R'[1]*''), shift = c(0.3, -0.7),
col = 'black', adj = -0.5)
Run the code above in your browser using DataLab