I am looking to plot the top 20 games in terms of their sales for 4 categories (EU, JP, NA and other) on the one plot.
I pulled the top 20 for each using the below code:
# creating a scatterplot of the top 20 in each category
top20NA <- head(sort(games$NA_Sales,decreasing=TRUE), n = 20)
top20EU <- head(sort(games$EU_Sales,decreasing=TRUE), n = 20)
top20JP <- head(sort(games$JP_Sales,decreasing=TRUE), n = 20)
top20other <- head(sort(games$Other_Sales,decreasing=TRUE), n = 20)
i then tried to run the below block but it just seems to run the last plot:
plot(top20NA, col ="Blue")
plot(top20EU, col = "Black")
plot(top20JP, col = "Yellow")
plot(top20other, col = "Green")
x axis should be ranking and y axis should be sales
any ideas? Thanks in advance