I wanted to edit y, which has three states, by adding a fourth state.
edit_pixels(y, n_states = 4, c("grey10", "lightgreen", "darkgreen", "white"))
# Error: Length of argument 'colours' should match the number of unique pixel states (3).
The length of the colours argument should be equal-to or more than n_states in y; in fact, I've specified it should now be 4 in the n_states argument.
I wanted to edit
y
, which has three states, by adding a fourth state.The length of the
colours
argument should be equal-to or more thann_states
iny
; in fact, I've specified it should now be 4 in then_states
argument.