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
library(shiny) | |
library(ggvis) | |
library(dplyr) | |
#setwd("~/GitHub/MOOC/4_modelowanie/serialeIMDB/") | |
load("serialeIMDB.rda") | |
shinyServer(function(input, output) { | |
mySerial <- reactive({ | |
serialeIMDB[serialeIMDB$serial == input$serial, ] | |
}) |
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
library(shiny) | |
library(dplyr) | |
df1 <- data.frame(id = c(1,2,3,4,5), number = c(20,30,23,25,34), ds = c(1,2,3,42,2)) | |
df2 <- data.frame(id = c(1,2), number = c(33,40), ds = c(1,2)) | |
shinyServer(function(input, output) { | |
datasetInput <- reactive({ | |
switch(input$dataset, |
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
@import url("//fonts.googleapis.com/css?family=Lato:400,700,900,400italic"); | |
/*! | |
* Bootstrap v2.3.2 | |
* | |
* Copyright 2013 Twitter, Inc | |
* Licensed under the Apache License v2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Designed and built with all the love in the world by @mdo and @fat. |
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
library(shiny) | |
shinyServer(function(input, output) { | |
output$distPlot <- renderPlot({ | |
x <- faithful[, 2] # Old Faithful Geyser data | |
bins <- seq(min(x), max(x), length.out = input$bins + 1) | |
hist(x, breaks = bins, col = 'darkgray', border = 'white') | |
}) | |
output$distPlot2 <- renderPlot({ |
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
> sessionInfo() | |
R version 3.1.1 (2014-07-10) | |
Platform: x86_64-apple-darwin13.4.0 (64-bit) | |
locale: | |
[1] pl_PL.UTF-8/pl_PL.UTF-8/pl_PL.UTF-8/C/pl_PL.UTF-8/pl_PL.UTF-8 | |
attached base packages: | |
[1] stats graphics grDevices utils datasets methods base |
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
choices <- list("Value1" = "AT1", "Value2" = "AT2", | |
"Value3" = "AT3", "Value4" = "AT4", | |
"Value5" = "AT5", "Value6" = "RT1", | |
"Value7" = "AT6", "Value8" = "AT7", | |
"Value9" = "AT8", "Value10" = "AT9", | |
"Value11" = "AT10", "Value12" = "RT2") | |
levele <- c("AT1","AT2","AT3","AT4","AT5","RT1","AT6","AT7","AT8","AT9","AT10","RT2") | |
df1 <- data.frame(value = levele,number = seq(2,46,4), number2 = seq(2,24,2),order = 1:12) |
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
choices <- list("Value1" = "AT1", "Value2" = "AT2", | |
"Value3" = "AT3", "Value4" = "AT4", | |
"Value5" = "AT5", "Value6" = "RT1", | |
"Value7" = "AT6", "Value8" = "AT7", | |
"Value9" = "AT8", "Value10" = "AT9", | |
"Value11" = "AT10", "Value12" = "RT2") | |
levele <- c("AT1","AT2","AT3","AT4","AT5","RT1","AT6","AT7","AT8","AT9","AT10","RT2") | |
number_value1 <- sample(1:100,12) |
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
choices <- c("Value1", "Value2", | |
"Value3", "Value4", | |
"Value5", "Value6", | |
"Value7", "Value8", | |
"Value9", "Value10", | |
"Value11", "Value12") | |
levele <- c("AT1","AT2","AT3","AT4","AT5","RT1","AT6","AT7","AT8","AT9","AT10","RT2") |
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
choices <- c("Value1", "Value2", | |
"Value3", "Value4", | |
"Value5", "Value6", | |
"Value7", "Value8", | |
"Value9", "Value10", | |
"Value11", "Value12") | |
levele <- c("AT1","AT2","AT3","AT4","AT5","RT1","AT6","AT7","AT8","AT9","AT10","RT2") | |
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
choices <- c("Value1", "Value2", | |
"Value3", "Value4", | |
"Value5", "Value6", | |
"Value7", "Value8", | |
"Value9", "Value10", | |
"Value11", "Value12") | |
levele <- c("AT1","AT2","AT3","AT4","AT5","RT1","AT6","AT7","AT8","AT9","AT10","RT2") |
OlderNewer