[R] Plotting time vs number
Jim Lemon
jim at bitwrit.com.au
Thu Aug 29 13:05:40 CEST 2013
On 08/29/2013 02:19 PM, mohan.radhakrishnan at polarisft.com wrote:
> Hi,
>...
> The plots are all there but the x=axis labels are not there. The graph
> labels are only '12:30', '13:30' and '14:30'
>
> I think I need to use your code to get all the values.
>
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
More information about the R-help
mailing list