[R] How to name variables in a single plot

From: Amir Safari <amsa36060_at_yahoo.com>
Date: Thu 02 Jun 2005 - 01:53:00 EST

 

Dear R Friends ,

I want to name my variables( more than 2 variables in a single plot) within a plot to distinct them from each other, but I cann't. How it is possible? I don't mean x and y axis using xlab or ylab. At the below , it follows some lines, only as an example that you could try please, if it is possible. I really thanks for your attention.

Amir    

library(graphics)

y<- c(1:100)

x1<-seq(0.1,10, by=0.1)

x2<-seq(0.5,50,by=0.5)

mydata<- data.frame( y=y, x1=x1, x2=x2)

matplot(mydata, type = "l" )

matplot(mydata, type = "l" ,xlab="Time")

matplot(mydata, type = "l" ,xlab="Time",ylab="MSE ")


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 02 02:07:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:20 EST