This file contains hidden or 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
| ## generates two datasets for illustration | |
| I <- 3 # nb tests | |
| J <- 4 # nb timepoints | |
| dat1 <- data.frame( | |
| Test=gl(I,J,labels=LETTERS[1:I]), | |
| timepoint=rep(1:J,I) | |
| ) | |
| dat1 <- transform(dat1, y=round(rnorm(I*J,2*timepoint),1)) | |
| I <- 5 # nb tests | |
| J <- 3 # nb timepoints |
This file contains hidden or 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
| # generates a html link at topright position | |
| sourcecode <- function(link){ | |
| tags$a(href=link, | |
| style="float:right; padding-right:10px;padding-top:10px; color:yellow; background-color:red; font-family:arial; font-size:20px", | |
| ">>source code<<") | |
| } | |
| ## generates two datasets for illustration | |
| # | |
| tests <- c("aaa","bbb","ccc") |
This file contains hidden or 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
| # generates a html link at topright position | |
| sourcecode <- function(link){ | |
| tags$a(href=link, | |
| style="float:right; padding-right:10px;padding-top:10px; color:yellow; background-color:red; font-family:arial; font-size:20px", | |
| ">>source code<<") | |
| } | |
| ## generates two datasets for illustration | |
| # | |
| tests <- c("aaa","bbb","ccc") |
This file contains hidden or 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(gWidgets2RGtk2) | |
| library(cairoDevice) | |
| library(ggplot2) | |
| ### make two examples datasets ### | |
| dat1 <- data.frame(FACTOR1=gl(2,3, labels=c("abc","ABC")), FACTOR2=gl(3,2, labels=c("uv","wx","yz")), x=1:6, y=1:6) | |
| dat2 <- data.frame(FACTOR1=gl(2,3, labels=c("xyz","XYZ")), FACTOR2=gl(3,2, labels=c("ab","cd","ef")), x=1:6, y=6:1) | |
| ### gWidgets macros ### |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
| </script> | |
| <script> | |
| $(document).ready(function() | |
| { | |
| $("#btn1").click(function(){ | |
| $("#box").animate({width:"300px"}); |
This file contains hidden or 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) | |
| runApp( | |
| list(ui=pageWithSidebar( | |
| headerPanel("Column Selector - first idea"), | |
| sidebarPanel( | |
| uiOutput("dyncolumns") | |
| ), | |
| mainPanel( | |
| tableOutput("subset"), |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> | |
| </script> | |
| <script> | |
| $(document).ready(function() | |
| { | |
| $("#btn1").click(function(){ | |
| $("#box").animate({width:"200px"}); |
This file contains hidden or 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
| shinyServer(function(input, output) { | |
| datasetInput <- reactive({ | |
| switch(input$dataset, | |
| "rock" = rock, | |
| "pressure" = pressure, | |
| "cars" = cars) | |
| }) | |
| output$caption <- renderText({ |
This file contains hidden or 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 breeze.optimize.linear._ | |
| object Main { | |
| def main(args: Array[String]) { | |
| println("\nWelcome.\nOpen the console and type e.g. new kantorovich(Array(1.0/7, 2.0/7, 4.0/7), Array(1.0/4, 1.0/4, 1.0/2)).run()\n") | |
| } | |
| } |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta http-equiv="Content-Style-Type" content="text/css" /> | |
| <meta name="generator" content="pandoc" /> |