I was wondering if it is possible to plot horizontal error bars with category labels on the y axis. I attached an example of what I would like to accomplish.
Thanks,
Chris
I was wondering if it is possible to plot horizontal error bars with category labels on the y axis. I attached an example of what I would like to accomplish.
Thanks,
Chris
This can be done in Gadfly using Geom.errorbar
(see here)
julia> using Gadfly
julia> x = sort(rand(10)); xmin = 0.9x; xmax = 1.1x;
julia> ystr = map(i -> string(i) * " as a string", 1:10)
10-element Array{String,1}:
"1 as a string"
"2 as a string"
"3 as a string"
"4 as a string"
"5 as a string"
"6 as a string"
"7 as a string"
"8 as a string"
"9 as a string"
"10 as a string"
julia> plot(y = ystr, x = x, xmin = xmin, xmax = xmax, Geom.errorbar)
julia> draw(PNG("C:\\Users\\Evan\\Desktop\\heb.png",8inch,6inch),ans)
gives
Thanks @evanfields. This was easier than I thought.