Skip to content
Prev 167395 / 398502 Next

Formatting the axis of plot() to shown our own values.

Part 1: 
I want to plot the CO2 concentration vs. year, but extending the x-axis
using the xlim parameter to include the year 2006 (x axis range of values
are from -41210 to 0), and adjusting the ylim parameter to go up to 400 when
the range of y axis values are from 150 to 300. How do I do this? Using axis
function? I am confused about the syntax here. 

Part 2:
I also want to use the points() function to add the data points from years
1958-2006 on X axis to the above plot, but in a different color. 

Please help. 
Thanks,
Saurabh