crossbar
crossbar(x, y, ymin, ymax; kwargs...)
Draw a crossbar. A crossbar represents a range with a (potentially notched) box. It is most commonly used as part of the boxplot
.
Arguments
x
: position of the boxy
: position of the midline within the boxymin
: lower limit of the boxymax
: upper limit of the box
Keywords
orientation=:vertical
: orientation of box (:vertical
or:horizontal
)width=0.8
: width of the boxshow_notch=false
: draw the notchnotchmin=automatic
: lower limit of the notchnotchmax=automatic
: upper limit of the notchnotchwidth=0.5
: multiplier ofwidth
for narrowest width of notchshow_midline=true
: show midline
Examples
using CairoMakie
xs = [1, 1, 2, 2, 3, 3]
ys = rand(6)
ymins = ys .- 1
ymaxs = ys .+ 1
dodge = [1, 2, 1, 2, 1, 2]
crossbar(xs, ys, ymins, ymaxs, dodge = dodge, show_notch = true)
© Makie.jl. Last modified: September 02, 2021. Website built with Franklin.jl and the Julia programming language.
These docs were autogenerated using Makie: v0.15.2, GLMakie: v0.4.6, CairoMakie: v0.6.5, WGLMakie: v0.4.6