GithubHelp home page GithubHelp logo

dzt109 / dataproduct Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 28.32 MB

An example app created using R Shiny Apps

Home Page: https://deeptrivia.shinyapps.io/buildbio/

HTML 6.90% Shell 9.37% CSS 52.96% JavaScript 29.47% R 1.30%

dataproduct's Introduction

Bio builder

Bio builder is my first Shiny app. The URL to the app is https://deeptrivia.shinyapps.io/buildbio/

I tried to experiment with as many input and output methods as possible. The following slides will outline the input and output methods used

--- .class #id

Input Methods

Here is a list of all the input methods used.

  1. textInput - Used to input strings - Firstname and Lastname
  2. sliderInput - Slider used to input age.
  3. radioButtons - Used to input Sex
  4. fileInput - Used to upload photo
  5. selectInput - Dropdown menu used to input educational level
  6. dateInput - Used to input graduation date

--- .class #id

Output Methods and Server.R

Here is a list of all the output methods used.

  1. textOutput - Used to output strings
  2. imageOutput - Used to output images
  3. uiOutput - Used to output a string or image dynamically based on input

Server.R does the following:

  1. Concatenates various inputs to product output strings
  2. Processes uploaded image for uiOutput
  3. Performs time since degree calculation as shown below.
todaysdate <- Sys.Date()
inputdate <- as.Date("2000-05-01")
outstring<- paste("Time since degree:",as.character(as.numeric(todaysdate - inputdate)),"days" ,sep=" ")
outstring
## [1] "Time since degree: 5767 days"

--- .class #id

Summary

This short app demonstrates a bunch of different input and output methods, as well as some background computations (such as an elapsed time calculation.)

This is a very efficient way to deploy responsive apps.

--- .class #id

References

  1. https://www.youtube.com/watch?v=HPZSunrSo5M
  2. https://rpubs.com/miguelpatricio/slidify
  3. http://shiny.rstudio.com/articles/images.html
  4. http://shiny.rstudio.com/reference/shiny/latest/textOutput.html
  5. http://shiny.rstudio.com/articles/cheatsheet.html

dataproduct's People

Contributors

dzt109 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.