[R] as.Date and Legend in a plot: Fixed

2018-06-23 Thread Ogbos Okike
Dear List, I am happy to report that the problem is fixed. as.Date("1998-02-10") as suggested by David handled the problem with easy. Many thanks to everybody. as.Date(1998-02-10) really resulted in error. It is my oversight. I really tried many things the day I was working on that and have forgott

Re: [R] as.Date and Legend in a plot

2018-06-22 Thread MacQueen, Don via R-help
What David Winsemius said, plus: Does legend('topleft', c("Climax", "Thule", "Sopo"), lty = 1, col = ("black","red","blue")) not work? It should, which will illustrate that you CAN add a legend to the plot. The x,y that you supply to legend must be values that are within the x,y range of the

Re: [R] as.Date and Legend in a plot

2018-06-22 Thread David Winsemius
> On Jun 22, 2018, at 12:12 PM, Ogbos Okike wrote: > > Dear Contributors, > > I am surprised that I cannot add legend to a certain plot. Although the > x-axis indicates years, the actual data was in year, month and day format. > I then used as.Date to play around and get what I am looking for.

[R] as.Date and Legend in a plot

2018-06-22 Thread Ogbos Okike
Dear Contributors, I am surprised that I cannot add legend to a certain plot. Although the x-axis indicates years, the actual data was in year, month and day format. I then used as.Date to play around and get what I am looking for. I am, however, worried that I cannot add legend to the plot no mat