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=1
: width of the box before shrinkinggap=0.2
: shrinking factor,width -> width * (1 - gap)
show_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: October 31, 2023. Website built with Franklin.jl and the Julia programming language.
These docs were autogenerated using Makie: v0.19.12, GLMakie: v0.8.12, CairoMakie: v0.10.12, WGLMakie: v0.8.16