Adding Legends to a radarchart [closed]

纵然是瞬间 提交于 2019-12-25 18:49:11

问题


By following this thread

I have created a radar chart. Can anyone suggest me how to add a legend to this graph?


回答1:


Here's a generic legend to get you started. You can alter it to suit your particular needs:

legend(-2,0,
       legend=c("V1","V2"),
       pch=c(15,16),
       col=c("blue","red"),
       lty=c(1,2))

The first two arguments are the location of the legend, in terms of the plot's (x,y) coordinates. Check the help for more details on the various arguments to the legend function.

I think you're getting negative votes because you essentially asked others to do your work for you. In the future, try out a few things first to see if you can get at least a partial answer. Then, in your question, explain what you've tried and what, specifically, you're trying to accomplish.



来源:https://stackoverflow.com/questions/13386656/adding-legends-to-a-radarchart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!