Home > Enterprise >  ggalluvial - let order of stratums follow dataset
ggalluvial - let order of stratums follow dataset

Time:10-10

I already searched for and looked at other answers to a similar (probably the same) question, but to be honest I don't get the respective answers since I am absolutely not into R.

What I basically want to do is to show the relation of all the Arm Architectures and their implementations (Processors) and their grouping into Families regarding their "Profiles". So I have 4 axis: Profile, Family, Architecture and Processor.

I took the data from Wikipedia (current result

So in my opinion, the best order would be to simply preserve the order from the input data.

How can I archive this behavior? I already read a lot about "factor" and "lode format" but I have no clue what all this means.

Maybe someone can help me with this.

Kind regards

CodePudding user response:

You can re-order the axes by converting your character vectors to factors and specifying the levels you want. Demonstrating for the first axis:

ARM$Profil = factor(ARM$Profil, levels = unique(ARM$Profil))

enter image description here

  • Related