我有这个shiny 的仪表板,我想将文本稍微向右移动一点,以便从与单选按钮相同的位置开始.
library(shiny)
library(shinydashboard)
# Define UI
ui <- dashboardPage(
dashboardHeader(title = "My Shiny Dashboard"),
dashboardSidebar(
radioButtons("d23", "Display on:",
choices = c("2D","3D"),
selected = "2D"),
# Place the uiOutput inside the sidebar
uiOutput("minmax")
),
dashboardBody()
)
# Define server logic
server <- function(input, output) {
output$minmax <- renderUI({
# Use renderText inside uiOutput
textOutput("minmax_text")
})
output$minmax_text <- renderText({
paste("Minimum for Selected Topics:", "23",
"Maximum for Selected Topics:", "34"
)
})
}
# Run the application
shinyApp(ui = ui, server = server)