6. Interactive Plots with plotly()

Topics and Notes
  1. What is interactive visualization HTML PDF RMD SOURCE
  2. 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.
  1. 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.
  2. 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.
  3. Assignment Due: Wednesday, 11:30 PM

Copyright © 2019- C. Peng. Last updated: