Created
December 6, 2015 23:09
-
-
Save davidcomfort/2f0ab7029c8517566064 to your computer and use it in GitHub Desktop.
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
server = function(input, output, session) { | |
target_gapdata <- reactive({ | |
a <- subset(gapdata, gapdata$Sub.Region %in% input$Sub.Region) | |
a <- droplevels(a) | |
return(a) | |
}) | |
output$motionchart <- renderGvis({ | |
target_gapdata <- target_gapdata() | |
return (gvisMotionChart(target_gapdata, | |
idvar="Country", | |
colorvar="Sub.Region", | |
timevar="Years", | |
xvar="GDP.per.capita", | |
yvar="Life.Expectancy", | |
sizevar="Population", | |
date.format="%Y", | |
options=list(state=' | |
{"yAxisOption":"4","yLambda":1,"nonSelectedAlpha":0.4,"colorOption":"9","showTrails":true,"xZoomedDataMin":240.3630688,"xAxisOption":"2","yZoomedIn":false,"orderedByX":false,"sizeOption":"5","dimensions":{"iconDimensions":["dim0"]},"playDuration":15000,"time":"1800","uniColorForNonSelected":false,"iconKeySettings":[],"xZoomedDataMax":184563.1049,"duration":{"multiplier":1,"timeUnit":"Y"},"iconType":"BUBBLE","orderedByY":false,"yZoomedDataMax":83.58,"yZoomedDataMin":6,"xZoomedIn":false,"xLambda":0} | |
') | |
)) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment