So, what function in what package is best for a bar chart with multiple datasets?
So far I’ve been looking at the StatPlots
and StatsPlots
packages and groupedbar
and groupedhist
. I’m not able to install the former package because of “Unsatisfiable requirements” but its groupedbar
looks promising. The latter package looks fine but I haven’t found a tutorial or documentation that I can understand. The main documentation GitHub - JuliaPlots/StatsPlots.jl: Statistical plotting recipes for Plots.jl shows examples like
using RDatasets
iris = dataset("datasets", "iris")
@df iris groupedhist(:SepalLength, group = :Species, bar_position = :dodge)
which is totally foreign to me. I’m familiar with the standard Plots
interface, with which you car plot regular arrays using a straightforward syntax like
p = plot()
plot!(p, xvec, yvec)
display(p)
I’m also able to use the bar
function in the Plots
package, but this one doesn’t seem to have a capability of plotting multiple datasets in a single bar chart.
I’m using julia Version 1.8.2 (2022-09-29) through the juliaup framework.