
I have this data set and want to make a geom_bar similar to the one I provided.

I want the geom_bar plot to have each one of the rows with the same name as different colors.
Similar to this:


I have this data set and want to make a geom_bar similar to the one I provided.

I want the geom_bar plot to have each one of the rows with the same name as different colors.
Similar to this:

Copyright © 2021 Jogjafile Inc.
Maybe you are looking for this. You have multiple values for the number of counts. So you can group by
NumAccountsand create a reference variable so that each value can be plotted in a bar. For that you can usemutate()fromdplyrandgroup_by()in order to have such id variable. Then the plot can be designed (Please next time include a sample of your data usingdput()). Here the code:Output:
And a more customized solution would be:
Output: