I tried to finde a solution for my problem but I could not. Probably, my problem is easy for some of you. However, I need support. I would be greatful for any help.
I have made a ggplot for two factors: HGU_type
and cycle_complexity
to show their proportions:
I used:
g2<-ggplot(t,aes(x=HGU_type,fill = cycle_complexity))+ geom_bar(position="fill")
g2
The graph, I get looks as follow:
I want to have increasing order of the bars on the x-axis...first bar with "nod", second with "shake", third with "retr"...
I tried everything and cannot find the solution.
I would be grateful for a hint