Assuming you have a dataset that includes information on both income and race, you can use ggplot2 and dplyr packages in R to create a graph of g against income with three colors for each race.
Here's an example:
main.r490 chars15 lines
This code will group the data by race and plot a scatter plot of g against income with three different colors for each race. You can customize the plot further by changing the colors or adding more layers to the plot.
gistlibby LogSnag