Displaying 1 result from an estimated 1 matches for "maduplot".
Did you mean:
madpilot
2011 Feb 08
2
Plot colour according to column
...different numbers. I would like to plot the rest
of the columns with the x axis as time and the individual angles in
different colours.
Here is the code I am using right now. It plots the different columns with
time, but I didn't know how to make the third column as the colour filter.
------
maduplot<-function(mydata) {
par(mfrow=c(5,3),mar=c(2,2,2,2))
for(i in 2:ncol(mydata)) {
plot(mydata[,i]~mydata[,1]
,type="l"
,xlab=colnames(mydata)[1]
,ylab=colnames(mydata)[i]
,main=colnames(mydata)[i])
grid(col="black",lwd=0.2,lty=1)
}
}
HCHO <-read.table("qdoas.qdo&q...