Does anybody know how to adding colors to data points in scatter plot in R?

I have the following R data frame -

Voter_Name, Education_years, Income, Registered
Ricky, 18, 40000, Y
Lisa, 20, 34000, N
Jon, 10, 35000, Y
...

I am doing a scatter plot in R for those data points - Income vs. 
EducationYears.

I would also like to using different colors to differentiate whether that 
data point is a Registered Voter or not.

Does anybody know how to adding colors to data points in scatter plot in R?

Thanks in advance!!

-- 
View this message in context: 
http://www.nabble.com/how-to-adding-colors-to-data-points-in-scatter-plot-in-R--tp23681471p23681471.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to