# Format the date
> flu$Date_epi <- strptime(flu$Date_epi, format= "%d/%m/%Y")
>format(flu$Date_epi, format="%Y-%m-%d")
> str(flu)
# plot the epicurve
> hist(flu$Date_epi[(flu$Sex=="F")], "weeks",
format = "%d %b %Y", freq=T, col=rgb(0,0,0,1), axes=F, main="")
> hist(flu$Date_epi[(flu$Sex=="M")], "weeks",
format = "%d %b %y", freq=T, col=rgb(0,0,0,1), axes=F, main="")
> axis.Date(1, at=seq(as.Date("2014-06-03"), as.Date("2014-07-19"), by="1 week"), format="%d %b %y")
> axis.Date(1, at=seq(as.Date("2014-06-03"), as.Date("2014-07-19"), by="weeks"),
labels=F, tcl= -0.5)
But this is what I obtain(two different graph) than what I expected) could anyone help me plot the epicurve similar to the above