I'm currently working with R trying to make some scatterplots that I'd like color coded. The graphs are plotting Risk from 1-10 on the y-axis and count of tornadoes within given parameters on the x-axis. The parameters are something like "tornadoes within 20 miles, 10 years, and have a magnitude of 3 or greater" In any case, the plots come out as shown in the image and the circles get darker as the count gets higher and I would like to get this color-coded...
My current code looks like this:
plot(dat$tornadoparameters, dat$Risk, xlab = Count of Tornadoes, ylab = Risk, main = Tornadoes within Tornado Parameters)