Skip to content

Instantly share code, notes, and snippets.

@yaojenkuo
Created December 7, 2017 09:00
Show Gist options
  • Save yaojenkuo/4456aed81a81dbfade83622f0948cfef to your computer and use it in GitHub Desktop.
Save yaojenkuo/4456aed81a81dbfade83622f0948cfef to your computer and use it in GitHub Desktop.
gapminder_replica/global.R
# 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