【问题标题】:How to add text inside the box with plotly plot in R shiny?如何在框内添加文本,并在 R 闪亮中绘制情节?
【发布时间】:2021-08-30 01:40:42
【问题描述】:

请查看带有圆圈文字的图片。我使用 renderUI 来显示我的情节,但使用它我无法添加像这张图片这样的文字。有人可以帮帮我吗? enter image description here

【问题讨论】:

  • 您能否提供问题所需的uiserver 代码以使问题完全可重现以及必要的数据(如果需要)?
  • 非常感谢。下面的代码对我有用。再次非常感谢您。

标签: r shiny plotly box rshiny


【解决方案1】:

在你的布局代码中添加这一行:

layout( 
annotations = list(text = "Your text here :)",  x = 100, y = 25, showarrow=F),
...)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-12
    • 2019-05-18
    • 2019-05-20
    • 2018-06-16
    • 2014-09-12
    • 2018-04-03
    • 1970-01-01
    • 2021-06-13
    相关资源
    最近更新 更多