Topics and Notes
- What is interactive visualization
HTML
PDF
RMD SOURCE
- Interactive plots using plotly()
HTML
RMD SOURCE
- a. plotly package and syntax
- b. interactive statistical charts
- c. Plotly map – a simple example of the interactive map
Assignments
Based on the life expectancy data set you prepared last week, select an appropriate plot(s) discussed this week to create a visualization displaying the relationship between income and life expectancy.
- Make an interactive scatter plot to display the association between life expectancy and income for the year 2015. [required]
- a. Set the point size to be proportional to the population size
- b. Use different colors for different countries.
- c. Choose an appropriate transparency level so that overlapped points can be viewed.
- d. Choose an appropriate color to highlight the point boundary so that partially overlapped points can be easily distinguished.
- e. Include the country name and population size in the hover text.
- Make an animated scatter plot that shows pattern of change in the relationship between life expectancy and income over the years. [optional]
- a. Set the point size to be proportional to the population size.
- b. Use different colors for different regions.
- d. Choose an appropriate transparency level so that overlapped points can be viewed.
- e. Choose an appropriate color to highlight the point boundary so that partially overlapped points can be easily distinguished.
- Assignment Due: Wednesday, 11:30 PM