Created
December 7, 2017 09:00
-
-
Save yaojenkuo/4456aed81a81dbfade83622f0948cfef to your computer and use it in GitHub Desktop.
gapminder_replica/global.R
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
# global.R template for Plotly/Shiny apps | |
library(plotly) | |
library(shiny) | |
library(magrittr) | |
library(dplyr) | |
py <- plot_ly(username="rAPI", key="yu680v5eii") | |
tidy_df <- read.csv("data/tidy_df.csv", stringsAsFactors = FALSE) | |
bubble_radius <- sqrt(tidy_df$pop / pi) | |
source("plotlyGraphWidget.R") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment