kaifengedu 发表于 2013-11-7 21:21 
谢谢,加问一个问题,如何把图例放在图形的外面。
First you need to turn off clipping:
Second specify the position of your legend outside your plot area. In your case:
You may need to change the width of the margin of your plot, e.g. change the "mar" or "mai" setting in "par"