Re: [R] how to write legend of a plot

2010-07-22 Thread John Kane
ch=16) legend(1,4,ltxt, pch=16) --- On Thu, 7/22/10, Yogesh Tiwari wrote: > From: Yogesh Tiwari > Subject: [R] how to write legend of a plot > To: "r-help" > Received: Thursday, July 22, 2010, 6:17 AM > Dear R Users, > If we issue simple plot command in R we don&#

Re: [R] how to write legend of a plot

2010-07-22 Thread Alain Guillet
Hi, There is no way to obtain an automatical legend with plot. The choice you have is to draw the legend by yourself or to use another graphical package but it is not necessary easier... For example, the code for the package ggplot2: donnees <- data.fram(x=x,y=y,y1=y1) melt(donnees,id="x") -

[R] how to write legend of a plot

2010-07-22 Thread Yogesh Tiwari
Dear R Users, If we issue simple plot command in R we don't get legend of the plot automatically. For example, following lines plots two curves, but to write a legend of these two curves there is no simple command. I checked with ?legend but it seems bit complicated for me. Does anyone know how t