Skip to content

Conversation

@bjreisman
Copy link
Contributor

Fix error bar colors to match curve colors in plot.drc

Problem
When using plot.drc() with type = "bars", error bars are always black regardless of the col argument.

Solution
Error bars now inherit curve colors by default. Added errbar.col parameter for manual control.

library(drc)
model <- drm(DryMatter ~ Dose, Herbicide, data = S.alba, fct = LL.4())

# New default - error bars match curves
plot(model, type = "bars", col = c("red", "blue"))
image
# Old behavior - black error bars  
plot(model, type = "bars", col = c("red", "blue"), errbar.col = "black")
image

- Error bars now inherit curve colors by default when using type = 'bars'
- Add errbar.col parameter for manual control of error bar colors
- Use errbar.col = 'black' to restore previous behavior
- Updated documentation and examples"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant