Last active
December 18, 2015 04:28
-
-
Save sgibb/5725234 to your computer and use it in GitHub Desktop.
give shiny a try; to run this example: `install.packages("shiny"); library("shiny"); runGist("5725234")`
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("MALDIquant") | |
data("fiedler2009subset") | |
shinyServer(function(input, output) { | |
output$plotBaseline <- renderPlot({ | |
plot(fiedler2009subset[[1]]) | |
lines(estimateBaseline(fiedler2009subset[[1]], | |
method=input$bem, input$hws), col=2, lwd=2) | |
}) | |
}) | |
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") | |
shinyUI(pageWithSidebar( | |
headerPanel("MALDIquant - Baseline Estimation"), | |
sidebarPanel( | |
radioButtons("bem", 'Baseline Estimation Method:', | |
c(SNIP="SNIP", | |
TopHat="TopHat", | |
ConvexHull="ConvexHull", | |
Median="median"), | |
"SNIP"), | |
sliderInput("hws", | |
"halfWindowSize:", | |
min = 1, | |
max = 1000, | |
value = 100) | |
), | |
mainPanel( | |
plotOutput("plotBaseline") | |
) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment