I have the follwing data frame
State Total_EV_1 Total_EV_2 Total_EV_3 total
<fctr> <int> <int> <int> <dbl>
1 CA 982 13166 1670 15818
2 TX 199 2169 267 2635
3 FL 329 1721 233 2283
4 WA 239 1647 161 2047
5 GA 199 1462 246 1907
6 NY 87 1475 178 1740
I would like to plot bars for each state (on x axis) and Total on Y axis and then color each of the bars according to number of total_EV1, total_EV2, Total_EV3. total = Total_EV1 + Total_EV2+Total_EV3
How do I go about doing that. What I can plot right now is a bar plot of state vs total.
image attached in the link below