How to get percentages on the y axes in an alluvial or sankey plot?

后端 未结 3 957
眼角桃花
眼角桃花 2021-01-16 02:53

I realized this graph using ggplot2 and I\'d like to change y axes to percentages, from 0% to 100% with breaks every 10. I know I can use:

+ scale_y         


        
3条回答
  •  迷失自我
    2021-01-16 03:43

    I assume You will need to create a new column of the percentages, by taking the total number of rows, and then dividing each "value" in your column by the total to get what percentage it represents.

提交回复
热议问题