Displaying 1 result from an estimated 1 matches for "0&data3".
2011 Mar 17
4
Help with plotting a line that is multicoloured based on levels of a factor
Hi All,
I'm trying to plot data that is a time series of flows that are associated
with a specific level, and I would like each level to represent a colour
in a line plot. Here is some data that approximates what I'm using:
date=c(1:300)
flow=sin(2*pi/53*c(1:300))
levels=c(rep(c("high","med","low"),100))
data=cbind.data.frame(date, flow, levels)
the "levels" column represents the levels of flow. What I've done so far
is to plot this data using coloured points corresponding with...