全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
3830 10
2013-06-09
Could anybody help on how to overlay all three different color of points(pch=c(16,16,16), col=c(1,2,3)) with one line (lty=4) in the legend() in R? Thanks a lot!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2013-6-9 09:33:19
复制代码

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-6-9 12:43:50
Thanks but sorry for not clear. I attached the legend I want in a PDF file with this message, besides this, I also would like to change all three black dots in the legend in the attachment to three different colors (col=c(1,2,3)).
附件列表

Presentation1.pdf

大小:3.22 KB

 马上下载

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-6-9 21:02:16
我觉得一个点就足够了
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-6-9 22:52:05
Thanks. I knew your way. but my data need that kind of legend I want, the data didn't have three lines, only one line link all data shown in three different colors. I know it is difficult to create that legend I want.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2013-6-13 04:24:35
verbatim 发表于 2013-6-9 22:52
Thanks. I knew your way. but my data need that kind of legend I want, the data didn't have three lin ...
Not sure what exactly you want. They ask for virtual money to see your example and I am unwilling to do so...
Anyway, I suppose you have 3 types of points and 1 type of line which you would like to show. And those make 4 rows in the legend. Following @qoiqpwqr's example:
复制代码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群