teunbrand / ggnomics

A small project to add ggplot2 extensions
https://teunbrand.github.io/ggnomics/
Other
80 stars 4 forks source link

Ordering x-axis using facet nested #30

Closed Siacm closed 4 years ago

Siacm commented 4 years ago

Hi! I have created a barplot and arranged the x-axis accordingly to how I want it. However, once I run it through facet_nested, it changes the order.

I've tried to get ideas and help from stackoverflow, but have received no reply so it might be an issue that hasn't been encountered before. https://stackoverflow.com/questions/58235789/how-do-i-order-x-axis-within-facet-nested?noredirect=1#comment102845843_58235789

Would there be a function within facet_nested that could work around this?

teunbrand commented 4 years ago

Hi there,

I've left an answer on stack overflow adressing your question. I currently do not see this as an issue with facet_nested, as the same thing occurs when using facet_grid.

Cheers!

Siacm commented 4 years ago

Ohh! Thank you!