I want to plot (in a single plot) two data frame columns composed of variables "my.data$V2" (y axis) vs date "my.data$V3" (x axis) which is a character string. I've tried using the base plot and ggplot approaches, but I couldn't get it work.
plot(my.data$V2,my.data$V3,xaxt="n",ylab="Volum") #don't plot the x axis
axis.POSIXct(1, at=seq(my.data$V3[1], my.data$V3[2], by="month"), format="%b") #label the x axis by months
require(ggplot2)
theme_set(theme_bw()) # Change the theme to my preference
ggplot(aes(x = my.data$V3, y = my.data$V2), data = my.data) + geom_point()
Here you can find the dataset. Load the file using load("data.Rdata")
Solved: Using
plot(strptime(my.data$V3,"%d/%m/%YT%H:%M:%S",tz="GMT"),my.data$V2, xlab="Time", ylab="Volum")