Closed Ax3man closed 7 years ago
Looks good, but now it needs a check for valid color input and valid vector length (>=2). Could you add this and resubmit the pull request?
I'd be happy to, but is it necessary? Both
plot(bf, cols = c('green'))
plot(bf, cols = c('green', 'pink', 'grey'))
give reasonable output. A single color will only color smaller than 1, for vectors of lenght > 2, only the first two elements are used.
Invalid colors already produce an informative error (invalid color name 'x'
) through barplot
.
Sounds good then. I'll merge.
This PR simply adds control over the title and colors of a BF plot. Defaults remain unchanged.
This now creates this plot.
In response to @fsense.