Adding Legends to a radarchart [closed]

2019-09-20 23:32发布

问题:

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.