[R] relabeling the x-axis of a plot with discontinuous timestamps
Stoesser, Jochen
Stoesser at iism.uni-karlsruhe.de
Wed Nov 5 12:56:29 CET 2008
Hi all,
I have two vectors of data:
The first vector contains timestamps (as integers), however the
difference between these dates varies. For instance, the vector can be
c(0, 5 , 10, 20, 25, 30) so that there is a "jump" between the third and
the fourth element.
The second vector contains the associated values that I want to plot
against these timestamps.
My problem is that I can't figure out how to label the x-axis with
timestamps that are not continuous but have jumps, as in the example
above. I tried relabeling the x-axis and using ts objects, but these
approaches seem to require continuous time series.
I appreciate any hint.
Best,
Jochen
More information about the R-help
mailing list