I would like to create a plot similar to this shown below.
It would be based on a dataframe and I would like to use Plots.
The x axis data would come from two columns.
Like a country-code and a date, as shown.
I am long used to the way Excel does that for PivotCharts.
This is how I created the attached chart.
I have tried a few solutions based on creating an extra column that combine the two original columns for the x axis. But that is hardly readable.
I’m not sure with Plots, but with AlgebraOfGraphics (or other grammar-of-graphics-style packages like Gadfly or VegaLite) you can achieve approximately this with a facet chart: Faceting · Algebra of Graphics
In your case you’d have something like mapping(:date, :y, col=:country).