从R绘图图中删除``编辑图表''链接 [英] Removing the Edit Chart link from an R plotly graph
本文介绍了从R绘图图中删除``编辑图表''链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在R版本的Plotly中,是否可以删除/隐藏显示在图形右下半部分的编辑图表"链接?
Is there a way to remove/hide the 'Edit Chart' link that appears in the bottom right half of your graph in the R version of Plotly?
推荐答案
从文档中使用 config :
plotly对象p
Plotly object p
p %>%
config(showLink = F)
您可以在此处中看到.js配置选项.
You can see .js config options in action here.
注意:顶部模式栏中的在云中保存和编辑绘图"按钮仍然存在.您可以使用
Note: the "save and edit plot in cloud" button in the Mode Bar at the top still exists. You can turn off the Mode Bar with
config(displayModeBar = F)
GitHub上有一个请求,用于编辑特定的模式栏按钮.
There is a request on GitHub to edit specific Mode Bar buttons.
这篇关于从R绘图图中删除``编辑图表''链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文