How do I customize the error bar caps (the horizontal lines at the end of the error bars)?

Question

Grade: Education Subject: Support
How do I customize the error bar caps (the horizontal lines at the end of the error bars)?
Asked by:
90 Viewed 90 Answers

Answer (90)

Best Answer
(290)
The `capsize` argument in Matplotlib's `errorbar()` function controls the length of the error bar caps. You can also use the `elinewidth` argument to control the thickness of the error bar lines and the caps. For ggplot2, you can customize caps using `geom_errorbar()`'s `arrow` argument.