r - How to draw values lower than ... in pie chart?
问题描述
I have uploaded the CSV file (searches.csv is now searches) and I need to draw a PIE CHART with values bigger than 1000. I use 2 columns from that CSV file: count and residence. residence contains countries, they are not unique: US US US UK etc. count- its a number.
I did an aggreagtion:
data1= aggregate(searches$count,
by=list(searches$residence), FUN=sum)
colors = c("red", "yellow", "green", "violet", "orange", "blue", "pink",
"cyan")
print(data1)
pie(data1$x, data1$Group.1,col=colors,main="Pie Chart of Countries")
My question is: where should I put the condition for values (summed ones) lower than 1000 (sum of counts for particular country)?
解决方案
推荐阅读
- python - models.ForeignKey 是否接受自身的实例作为默认值?
- python - 如何使用 tkinter 将用户选择的颜色分配给 Python 列表中的每个元素
- python-3.x - 在熊猫中处理工作表后保存工作簿
- r - 时间序列的滞后回归
- azure - 无法使用 Azure SignalR 服务连接到集线器
- javascript - 滚动到视图中时启动动画
- json - 如何将 bash 命令输出添加到漂亮格式的 json git log
- go - ROT13 使用字节而不是字符串
- python - 如何从“ir.property”模型中获取价值。奥多 14
- r - 显示警告:Shiny 中 :: NA/NaN 参数中的错误