It is a National data with state variables.
I would like to create a twoway scatter plot with case fatality rate (cfr) and case positivity rate (cpr) of covid, among all Indian states with death rate as weight.
I have used the following code. I would like to colour all the 29 states mentioned in the data with different colors. How can I do that?
Code:
twoway (scatter cpr cfr, mfcolor(blue) msymbol(none) mlabel(dummy) mlabposition(6) mlabgap(4) mlabsize(vsmall) mlabangle(90) mlabcolor(black)) (scatter cpr cfr [aweight=death])
0 Response to How to give different color for all the scatter plots in a graph?
Post a Comment