How to make this type of graphs in r?
Product Revenue Quantity Rev Cum Quat Cum
Product A 50% 40% 50% 40%
Product B 25% 30% 75% 70%
Product C 15% 20% 90% 90%
Product D 10% 10% 100% 100%
How to make this type of graphs in r?
Product Revenue Quantity Rev Cum Quat Cum
Product A 50% 40% 50% 40%
Product B 25% 30% 75% 70%
Product C 15% 20% 90% 90%
Product D 10% 10% 100% 100%

geom_recttakes 4 coordinates and makes a rectangle.mutate_at(-1withfuns(...)as a second argument creates new variables for each column except for column 1 with the function specified insidefuns. Same formutate_at(vars(matches('cum')), but in that case new columns are created for only variables whose name contains'cum'.