Skip to content

Instantly share code, notes, and snippets.

@shanmdphd
Created August 19, 2016 02:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanmdphd/4e6e7f03864a0ba84e6e09375c83802e to your computer and use it in GitHub Desktop.
Save shanmdphd/4e6e7f03864a0ba84e6e09375c83802e to your computer and use it in GitHub Desktop.
ui.R
library(shiny)
library(ggplot2)
dataset <- diamonds
fluidPage(
titlePanel("PEET2017"),
sidebarPanel(
sliderInput('sampleSize', 'Sample Size', min=1, max=nrow(dataset),
value=min(1000, nrow(dataset)), step=500, round=0),
selectInput('x', 'X', names(dataset)),
selectInput('y', 'Y', names(dataset), names(dataset)[[2]]),
selectInput('color', 'Color', c('None', names(dataset))),
checkboxInput('jitter', 'Jitter'),
checkboxInput('smooth', 'Smooth'),
selectInput('facet_row', 'Facet Row', c(None='.', names(dataset))),
selectInput('facet_col', 'Facet Column', c(None='.', names(dataset)))
),
mainPanel(
plotOutput('plot')
)
)
@shanmdphd
Copy link
Author

Questions

  • How?

Answers

  • Test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment