Skip to content
Prev 329275 / 398498 Next

Plotting time vs number

On 08/29/2013 02:19 PM, mohan.radhakrishnan at polarisft.com wrote:
Hi Mohan,
Try this:

plot(strptime(data$Time,"%H:%M:%S"),data$Kbytes,pch=0,
  type="b",col="red",col.axis="red", ylab="",
  xlab="",las=2,lwd=2.5,xaxt="n")
library(plotrix)
staxlab(at=as.numeric(strptime(data$Time,"%H:%M:%S")),
  labels=as.character(data$Time),nlines=3)

Jim