[R] "Time Series Plotting"

niharika singhal niharikasinghal1990 at gmail.com
Tue Oct 10 14:08:50 CEST 2017


I need some help in plotting time series.

I have dataframe Data with two column and thousands of row, I want wherever
the sequence corresponding to Energy column is changed the color change
should be reflected in Time Series plot, some rows of dataframe are below

Energy  sequence

13536     3

14335     3

14638     3

25363     3

18511     2

18371     2

14555     3

I am able to plot time series by:-

Data.energy<- ts(Data$ Energy, frequency=1)


How should I add the color effect based on the sequence column value?

Thanks & Regards

Niharika Singhal

	[[alternative HTML version deleted]]

More information about the R-help mailing list