Skip to content
Prev 22908 / 29559 Next

Stplot for discrete data

Hi, I am trying to use the spacetime package to plot a timeseries of
discrete data.  My dataset consists of the values: 0, 1, NA.  Is there a
way to plot each value in a different color and construct a key indicating
these discrete values?

I am plotting with the following command which automatically generates a
color ramp from 0 to 1: stplot(stfdf[,,"report"], names.attr=year).

Thank you for your help and for providing an excellent package.

Best,