Can't draw histogram of Date Class properly in R -
given list of dates, when try draw bar graph hist() function below,
date1 <- c(as.date("2010/01/06"),as.date("2010/01/07"),as.date("2010/01/18"),as.date("2010/01/09")) hist(date1, "days",ylim=c(0,2),freq=t)
the output link below.
as list has "2010/01/06" , "2010/01/07", graph should count each date. how can resolve this? or bug of r?
my environment is: mac os x 10.9.5 r version 2.15.3
Comments
Post a Comment