Created
March 13, 2017 08:34
-
-
Save kazutan/abf2ed771c55f78b0312c5c4387f619b to your computer and use it in GitHub Desktop.
shniyにcssを当てるテスト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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