Skip to content

Instantly share code, notes, and snippets.

@stephlocke
Created March 13, 2019 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephlocke/65eaa4dea759d77a6e0cc9b158fb483d to your computer and use it in GitHub Desktop.
Save stephlocke/65eaa4dea759d77a6e0cc9b158fb483d to your computer and use it in GitHub Desktop.
---
title: "First dash"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
runtime: shiny
---
```{r setup, include=FALSE}
library(flexdashboard)
library(ggplot2)
library(plotly)
data(iris)
```
Sidebar {.sidebar}
-----------------------------------------------------------------------
```{r}
numericInput("rows", "Number of rows to sample", min = 1, max=nrow(iris),
value=floor(.7*nrow(iris)))
```
Column
-----------------------------------------------------------------------
### Chart A
```{r}
renderPlotly({
p = ggplot(dplyr::sample_n(iris, size=input$rows), aes(x=Sepal.Width, y=Sepal.Length)) + geom_point()
ggplotly(p)
})
```
### Chart A
```{r}
```
Column
-----------------------------------------------------------------------
### Chart B
```{r}
```
### Chart C
```{r}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment