Extending Shiny By Enhancing User Experience With shinyLP
😀 + 💻
Jasmine Dumas | @jasdumas | jasdumas.github.io
Thursday, April 6, 2017
ttbbeer
and shinyLP
shiny
before we get started!shiny
apps in 2014shiny
apps are becoming more advanced and if we don’t incorporate user experience (UX) features, users may have difficulty using the app as intended
shiny
add-on packages that increase usabilityshinyjs
: Adds JavaScript operationsshinydashboard
: Create dashboardsshinythemes
: Alter the color and fontshinyBS
: Adds additional Twitter Bootstrap components to Shiny.
shiny
examples from the internet!
shinyLP
jumbotron <- function(header , content, button = TRUE, ...){
button_label = c(...)
if (button){
HTML(paste0("<div class='jumbotron'>
<h1> ", header, "</h1>
<p>", content ,"</p>",
"<p><a class='btn btn-primary btn-lg' button id='tabBut'>", button_label, "</a></p>
</div>") )
} else {
HTML(paste0("<div class='jumbotron'>
<h1> ", header, "</h1>
<p>", content ,"</p>",
"</div>") )
}
}
shinyLP
…shinyLP
example is a-peeling…