[R] Legend on graph

Nguyen Dinh Nguyen
Mon, 13 Aug 2007 22:41:54 -0000

Hi Akki,
Then you may need to increase y-axis scale by ylim=c(min,max)
Cheers
Nguyen

On 8/12/07, akki <akkilesha at gmail.com> wrote:
> Hi,
> I have a problem when I want to put a legend on the graph.
> I do:
>
> legend("topright", names(o), cex=0.9, col=plot_colors,lty=1:5,
bty="n")
>
> but the legend is writen into the graph (graphs' top but into the
graph),
> because I have values on this position. How can I write the legend on top
> the graph without the legend writes on graph's values.
>
> Thanks.