


Hello,
 
I have an x, y data set of circa 966 points, and counting, where I am trying to plot one integer y-axis number per a corresponding x-axis date, in R. The command plot(initialPlot$Dates, initialPlot$AxisData), where $Dates is 2007-07-24:2010-03-15, and $AxisData is the corresponding y coordinates, results in an accurate x-axis, but unusable plot, as lines and points are not generated, only dashes for the plot. I wrote a simple C++ program, and stripped out the dates to Year, month, and day data sets (eg. 2007, 08, 01), and used these sets as arguments to ISODate, but this did not work, as the month data set does not appear to be the correct argument for ISOdate used in this manner. I have looked, but not found an example that shows how this is done in R. An example point would look like (2007-24-07, 109), where the data would be input by read.table(), and appear in R as:
 
      Date     AxisData
2007-07-24          109
         .            .
         .            .
         .            .
2010-03-15          102
 
 
 
A usable plot would have an accurate x-axis, displaying the correct date interval, and a point-line trace representing the y-axis coordinates. plot($AxisData) achieves this successfully, as the x-axis defaults to the number of inputs). Any help you all may provide will be greatly appreciated. If more information would be helpful, please let me know.
 
 
Cheers,
 
John

 		 	   		  
	[[alternative HTML version deleted]]

