Open pdeffebach opened 1 year ago
Here is an MWE
julia> using AlgebraOfGraphics, GLMakie, DataFrames;
julia> df = DataFrame(x = 1:10, y1 = rand(10) .+ 1, y2 = rand(10) .+ 2);
julia> p = data(df) * mapping(:x, [:y1, :y2], color = dims(1)) * linear();
julia> draw(p)
Which gives
I would like the two lines on the graph to be labelled "y1" and "y2" rather than CartesianIndex
as is the current behavior.
Problem description
I am making a line plot with wide data. The command is
See how I have to repeat
["N", "U", "B", "W"]
twice? I should just have to writedims(1)
and have it automatically take the name of the lines from themapping
.