I have a csv file containing the following lines:
V1 V2
1979 05/11/1979
1980 06/14/1980
1981 06/22/1981
1982 06/02/1982
1983 05/21/1983
I need to plot this as Day-Month in the Y-axis and Year in the X-axis
I tried to do the following:
dat <-read.csv("test.csv",header=FALSE,sep=",")
dat$V3 <-as.Date(dat$V2,format="%m/%d/%y")
plot(dat$V1,dat$V3)
The output is Year vs Year which is not what I want. Can anyone provide any tips on how to plot something like this?
The output is like this:
What I want should look like this:
I'll appreciate any help.
Many thanks in advance