在ui.R文件中寻找shinyhelper的图标代码,类似于下面这段代码:
library(shiny)
ui <- fluidPage(
shiny::titlePanel("My Shiny App"),
shiny::sidebarLayout(
shiny::sidebarPanel(
shinyhelper::helper(
"Input data",
"Click this button to insert data.",
position = "right"
)
),
shiny::mainPanel(
plotOutput("plot")
)
)
)
找到 position = "right"
的参数,将right
改为想要的位置(例如top
、bottom
等),根据需要調整位置。
shinyhelper::helper(
"Input data",
"Click this button to insert data.",
position = "top"
)
上一篇:把时间分成带前导零的小时和分钟。
下一篇:把视频中文翻译成英文字幕