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
name: "site" | |
output: | |
html_document: | |
theme: sketchy | |
bootstrap_version: 4 | |
theme_variables: | |
primary: pink | |
font-size-base: 1.5rem | |
navbar: | |
title: "My Website" |
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
library(shiny) | |
mtcars$.key <- row.names(mtcars) | |
ui <- fluidPage( | |
plotlyOutput("scatter"), | |
plotlyOutput("bars") | |
) | |
server <- function(input, output, session) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: "Subapp test" | |
output: html_document | |
runtime: shiny | |
--- | |
Check your JS console for errors | |
```{r} | |
library(shiny) |
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: "Untitled" | |
output: | |
flexdashboard::flex_dashboard: | |
orientation: columns | |
vertical_layout: fill | |
runtime: shiny | |
--- | |
```{r setup, include=FALSE} |
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: "dash" | |
output: flexdashboard::flex_dashboard | |
runtime: shiny_prerendered | |
--- | |
```{r setup, include=FALSE} | |
library(tidyverse) | |
library(plotly) |
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: "Untitled" | |
output: html_document | |
runtime: shiny_prerendered | |
--- | |
```{r} | |
library(plotly) | |
plotlyOutput("p") | |
``` |
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: "Untitled" | |
output: html_document | |
runtime: shiny_prerendered | |
--- | |
```{r} | |
library(leaflet) | |
leafletOutput("map") | |
``` |
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
<head> | |
<!-- Plotly.js --> | |
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script> | |
</head> | |
<body> | |
<div id="graph"></div> | |
<script> | |
var dat = [{ | |
"x": [1,2,3,4,5], |
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
library(plotly) | |
library(crosstalk) | |
library(htmlwidgets) | |
mtcars %>% | |
SharedData$new() %>% | |
plot_ly(x = ~wt, y = ~mpg) %>% | |
highlight("plotly_selected", dynamic = TRUE) %>% | |
onRender( | |
"function(el, x) { |