I want to add commas to the y-axis on my plot, but what I have tried so far is not working:
matplot(X, Y, type = "l", col = "green", xlab = "Time (years)", ylab = "Cost", main = "BLANK", ylim = (30000,60000), xlim = c(0,15))
is what I have.
Not sure how to add commas to the 30,000 - 60,000 which should appear on the y-axis.
EDIT: Sorry, what I meant in tags for matplot was this: http://stat.ethz.ch/R-manual/R-patched/library/graphics/html/matplot.html