分析两个数值向量的交集并创建饼图
我有两个带有数值的向量:
v.typA <- c(1,2,110,111,20,22,46,80,89,100,210,320,999,1000) # length = 14
v.typB <- c(1,2,10,11,20,22,40,44,60,66,80,88,100,210,320,430,540,666) # length = 18
现在我想创建一个饼图,它以百分比形式可视化这两个向量的唯一值和重复项。我正在考虑这样的事情:
我该怎么做?
I'm having two vectors with numeric values:
v.typA <- c(1,2,110,111,20,22,46,80,89,100,210,320,999,1000) # length = 14
v.typB <- c(1,2,10,11,20,22,40,44,60,66,80,88,100,210,320,430,540,666) # length = 18
Now I want to create a pie chart, which visualizes the unique values and duplicates of these two vectors in percentage. I'm thinking of something like this:
How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你心里有这样的想法吗?
Do you have something like this in mind?