删除ggplot中传说大纲的方法
在R中,我的图将显示传奇标题为“深度” 当我添加指南以更改标题以资本化深度时,它会在传说中的每个层面上增加黑色边框。我想使用另一种方法来重命名传奇标题,并保持关卡的渐变外观,或删除黑色轮廓。
ggraph(df.graph, layout = 'partition') +
geom_node_tile(aes(fill = depth)) +
guides(fill=guide_legend(title="Depth", reverse = TRUE)) +
theme(panel.background = element_rect(fill = NA, color = NA))
In R my graph would show legend title as "depth"
When I added guides to change title to capitalize Depth it adds black border around each level in the legend. I'd like to either use another method to rename legend title and keep the gradient look of the levels or remove the black outline.
ggraph(df.graph, layout = 'partition') +
geom_node_tile(aes(fill = depth)) +
guides(fill=guide_legend(title="Depth", reverse = TRUE)) +
theme(panel.background = element_rect(fill = NA, color = NA))
I like Depth capitalized but don't like the black border
I like the gradient, smooth color transition here but not lowercase depth
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论