r - ggforce::geom_arc_bar 中的线条颜色
问题描述
大概是一个简单的。
有没有办法消除 ggforce::geom_arc_bar 饼图中的边界线?
pie <- data.frame(
state = c('eaten', 'eaten but said you didn\'t', 'cat took it',
'for tonight', 'will decompose slowly'),
focus = c(0.2, 0, 0, 0, 0),
start = c(0, 1, 2, 3, 4),
end = c(1, 2, 3, 4, 2*pi),
amount = c(4,3, 1, 1.5, 6),
stringsAsFactors = FALSE
)
ggplot(pie) +
geom_arc_bar(aes(x0 = 0, y0 = 0, r0 = 0, r = 1, amount = amount,
fill = state, explode = focus), stat = 'pie') +
scale_fill_brewer('', palette = 'Set1') +
coord_fixed()
例如,在上图中,要么消除黑色边框线,要么使其颜色与填充颜色相同?
还有一个问题,是否可以只从馅饼的周边消除边界线?那么只有切片的分界线会保留吗?
解决方案
推荐阅读
- delphi - 在某个列中的记录发生变化的 dbgrid 中减去多个值
- forms - 不可见的 reCAPTCHA javascript
- java - 在 Jenkins 文件夹上进行自动化测试以供下载时,未创建
- python - 获取未知的未知选项“-alpha”错误
- c# - 查找 GPIB 总线上的设备列表
- c# - 如何修复 .AddServices() 错误 - 扩展)IServiceCollection IServiceCollection.AddServices(IConfiguration 配置
- python - 如何使用“with open”比较python中两个文件的不同之处
- flutter - 如何在 Flutter 中配置 Xmpp 库?
- javascript - 在 Javascript 中搜索数据表
- javascript - “x”类型的参数不能分配给 Angular7 中“x”类型的参数