将图例添加到雷达图 [英] Adding Legends to a radarchart

查看:130
本文介绍了将图例添加到雷达图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遵循此线程

我制作了雷达图表。任何人都可以建议我如何在图中添加图例?

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

推荐答案

这是一个通用的图例,让你开始。您可以改变它以适应您的特定需求:

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))

前两个参数是图例的位置,根据图的(x,y )坐标。请查看帮助以获取有关传说函数的各种参数的更多详细信息。

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.

这篇关于将图例添加到雷达图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆