Last active
July 30, 2020 17:41
-
-
Save ChrisBeeley/ab916ac1cf19cb144194 to your computer and use it in GitHub Desktop.
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
--- | |
title: "Basic RMarkdown Shiny" | |
author: "Chris Beeley" | |
output: html_document | |
runtime: shiny | |
--- | |
# Example RMarkdown document | |
This is an interactive document written in *markdown*. As you can see it is easy to include: | |
1. Ordered lists | |
2. *Italics* | |
3. **Bold type** | |
4. Links to [Documentation](http://rmarkdown.rstudio.com/authoring_shiny.html) | |
## This is heading two | |
Perhaps this introduces the visualisation below. | |
```{r, echo=FALSE} | |
sliderInput("sampleSize", label = "Size of sample", | |
min = 10, max = 100, value = 50, step = 1) | |
renderPlot({ | |
hist(runif(input$sampleSize)) | |
}) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment