I use plotly library in R.
I want to have two symmetric bar charts. Something like that:
But I have :
plot_ly(x= customer_age_sex$POP,y=customer_age_sex$AGE,color=customer_age_sex$CIVILITE) %>%
add_bars(orientation = 'h')
How can I change the orientation of the orange bar plot to be symmetric with the other?
Thanks a lot for your help.