The first X-axis variable is reservoir_name, the second level grouping variable (for the legend colors) is scenario_name. I'd like to add an X-axis based on the grouping variable type_vulnerable.
In other words, type_vulnerable would form a nested x-axis with a Traces & Years for each of the reservoir_name's.
I found this fiddle but have not had luck adapting it to this situation.
Hi @JohnCoene &/| @helgasoft, I'm wandering in the dark on this one. I have some data represented below:
and some simple plotting code:
The first X-axis variable is
reservoir_name
, the second level grouping variable (for the legend colors) isscenario_name
. I'd like to add an X-axis based on the grouping variabletype_vulnerable
. In other words,type_vulnerable
would form a nested x-axis with aTraces
&Years
for each of thereservoir_name
's.I found this fiddle but have not had luck adapting it to this situation.
Any elegant solutions to this?