Closed gallagherman closed 5 months ago
Yeah that's right, the text itself is used to parse out the different hierarchy levels, which doesn't work with expressions.
I'm not planning to do any updates to guide_axis_nested()
, as I'm working on something similar using functionality that now only lives in dev-ggplot2. Until that arrives, I'm afraid this isn't possible.
I'll close this as 'not planned' for now
I can use expressions in scale_x_discrete() normally by setting labels = expression(...), but when use guide = axis_nested, using labels doesn't work anymore, because multiple labels are needed and I think the labels are taken directly from interaction() or weave_factors(). How can we use expressions with nested axis labels? Or is there a way to pass multiple custom label elements with expressions to weave_factors?
Expressions in labels Example: