Re: [R] as.Date and ylim in empty plot: RESOLVED

2018-09-22 Thread David Winsemius
> On Sep 19, 2018, at 10:48 PM, Ogbos Okike wrote: > > Hi David, > That's it!!! The outcome is attached. The explanation for this is that columns that have digits separated by dashes will not be interpreted by R's read.table() as numeric or dates, but rather as the default for text entries:

Re: [R] as.Date and ylim in empty plot: RESOLVED

2018-09-19 Thread Ogbos Okike
Hi David, That's it!!! The outcome is attached. Many thanks please. Best Ogbos On Wed, Sep 19, 2018 at 11:34 PM David Winsemius wrote: > > > On Sep 19, 2018, at 7:55 AM, Ogbos Okike > wrote: > > > > Dear Experts, > > I generated the plot attached. Every other thing is OK except the black > >

Re: [R] as.Date and ylim in empty plot

2018-09-19 Thread David Winsemius
> On Sep 19, 2018, at 7:55 AM, Ogbos Okike wrote: > > Dear Experts, > I generated the plot attached. Every other thing is OK except the black > horizontal lines which should appear like points or dots as the coloured > ones. I can't understand why. > > I tried to change it to look like dots by

Re: [R] as.Date and ylim in empty plot

2018-09-19 Thread MacQueen, Don via R-help
I'm a little surprised at some of what happens, but you can get date labels on the x axis like this: drng <- as.Date( c('2005-1-1' , '2005-12-31') ) plot(1, type="n", xlab="", ylab="", xaxt='n', xlim=drng, ylim=c(-.5, -10)) axis(1, at= pretty(drng), lab=format(pretty(drng))) and if you prefer so

[R] as.Date and ylim in empty plot

2018-09-19 Thread Ogbos Okike
Dear Experts, I generated the plot attached. Every other thing is OK except the black horizontal lines which should appear like points or dots as the coloured ones. I can't understand why. I tried to change it to look like dots by calling empty plots so that I will add them as points. Since I hav