Displaying 1 result from an estimated 1 matches for "sam6".
Did you mean:
sam
2006 Apr 17
2
Problem using plot and converted dates
.../01/01","04/03/01","04/05/01","04/07/01")
sam5<-strptime(sam4,format="%y/%m/%d")
f<-data.frame(sam5,mkf)
plot(f,type="l")
# This works ok, but none of the labels appear on the x-axis, so I thought I
would convert them using
# as.POSIXct:
sam6<-format(as.POSIXct(sam5), "%b-%y")
mon<-factor(as.character(sam6),levels=sam6)
f2<-data.frame(mon,mkf)
plot(f2,type="l")
The problem is that plot(f2,type="l") no longer produces a line plot...
Any help with this would be gratefully appreciated.
Best wishes,...