[R] Legend on graph

Nguyen Dinh Nguyen n.nguyen at garvan.org.au
Tue Aug 14 00:41:54 CEST 2007


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.


More information about the R-help mailing list