This file contains hidden or 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
# My first tiny-shiny | |
# Thanks to all the guys at R-Studio, especially Joe Cheng for some hand-holding | |
# The global.r script can hold variables available to both ui.r and server.R | |
library(shiny) | |
library(ggplot2) | |
# data based on goals scored to early November 2012 | |
df <- read.csv("http://www.premiersoccerstats.com/shinyGoals.csv",stringsAsFactors=FALSE) |
This file contains hidden or 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) | |
library(ggplot2) | |
# data based on goals scored to early November 2012 | |
url <- "http://www.premiersoccerstats.com/plScoringRuns.csv" | |
df <- read.csv(url,stringsAsFactors=FALSE) | |
# create the data for the selectInput | |
playerChoices <- unique(df[,c(1,2)])$PLAYERID |
NewerOlder