Skip to content

Instantly share code, notes, and snippets.

@kazutan
Created March 13, 2017 08:34
Show Gist options
  • Save kazutan/abf2ed771c55f78b0312c5c4387f619b to your computer and use it in GitHub Desktop.
Save kazutan/abf2ed771c55f78b0312c5c4387f619b to your computer and use it in GitHub Desktop.
shniyにcssを当てるテスト。
if (interactive()) {
options(device.ask.default = FALSE)
ui <- fluidPage(
# ここからcss設定の追加
tags$style(type = "text/css",
".shiny-input-container {background-color: #FF0000;}",
"form.well { background-color: #0000FF"),
# ここまでcss設定の追加
titlePanel("Hello Shiny!"),
sidebarLayout(
sidebarPanel(
sliderInput("obs", "Number of observations:",
min = 1, max = 1000, value = 500)
),
mainPanel(
plotOutput("distPlot")
)
)
)
# Server logic
server <- function(input, output) {
output$distPlot <- renderPlot({
hist(rnorm(input$obs))
})
}
# Complete app with UI and server components
shinyApp(ui, server)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment