% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/xl_chart_parts.R
\name{xl_chart_error_bars}
\alias{xl_chart_error_bars}
\title{Error bars on a chart series}
\usage{
xl_chart_error_bars(
  type,
  value = NA,
  direction = NULL,
  endcap = NA,
  format = NULL
)
}
\arguments{
\item{type}{How the size of each bar is worked out: `"std_error"` for the
standard error, `"fixed"` for a constant, `"percentage"` of the point's
own value, or `"std_dev"` for that many standard deviations.}

\item{value}{The constant, the percentage, or the number of standard
deviations.  `"std_error"` needs none.}

\item{direction}{`"both"`, `"plus"` or `"minus"`.}

\item{endcap}{Draw the cap at the end of each bar.  On by default.}

\item{format}{An [xl_format()] styling the bars --- [xl_border()] only,
since an error bar is a line.}
}
\value{
An `xl_chart_error_bars` object.
}
\description{
`xl_chart_error_bars()` draws an error bar at each point, and is given to
[xl_chart_series()] as `x_error_bars` or `y_error_bars`.
}
\examples{
xl_chart_error_bars("percentage", 5)
xl_chart_error_bars("std_dev", 1, direction = "plus", endcap = FALSE)
}
\seealso{
[xl_chart_series]

Other images and charts:
\code{\link[=xl_chart]{xl_chart()}},
\code{\link[=xl_chart_axis]{xl_chart_axis()}},
\code{\link[=xl_chart_labels]{xl_chart_labels()}},
\code{\link[=xl_chart_legend]{xl_chart_legend()}},
\code{\link[=xl_chart_marker]{xl_chart_marker()}},
\code{\link[=xl_chart_series]{xl_chart_series()}},
\code{\link[=xl_chart_table]{xl_chart_table()}},
\code{\link[=xl_chart_trendline]{xl_chart_trendline()}},
\code{\link[=xl_chartsheet]{xl_chartsheet()}},
\code{\link[=xl_image]{xl_image()}}
}
\concept{images and charts}
