Classwork 6

Visualization Practice

Author

Byeong-Hak Choe

Published

February 24, 2025

Modified

February 24, 2025

Question 1

The following data is for Question 1:

gapminder <- gapminder::gapminder


Q1a

  • Replicate the following ggplot.
    • Use the color #0072B2 for dots.

Answer:



Q1b

  • Make a simple comment on the visualization result.

    • Any comment that is not made up is okay.

Answer:




Question 2

The following data set is for Question 2:

electricity <- read_csv(
  'https://bcdanl.github.io/data/electricity-usa-chn.csv')


Q2a

  • Replicate the following ggplot.

Answer:

Q2b

  • Replicate the following ggplot.

Answer:


Question 3

The following data is for Question 3:

n_tweets_long <- read_csv(
  'https://bcdanl.github.io/data/n_tweets_long.csv')


Q3a

  • Replicate the following ggplot.

    • The following describes the type values:
      • n_ot_us: Number of US tweets
      • n_ot_wrld: Number of worldwide tweets
      • n_rt_lk_us: Number of US retweets & likes
      • n_rt_lk_wrld: Number of worldwide retweets & likes
    • Use the colors, maroon and #428bca properly.

Answer:

Q3b.

  • Make a simple comment on the visualization result.




Discussion

Welcome to our Classwork 6 Discussion Board! 👋

This space is designed for you to engage with your classmates about the material covered in Classwork 6.

Whether you are looking to delve deeper into the content, share insights, or have questions about the content, this is the perfect place for you.

If you have any specific questions for Byeong-Hak (@bcdanl) regarding the Classwork 6 materials or need clarification on any points, don’t hesitate to ask here.

All comments will be stored here.

Let’s collaborate and learn from each other!

Back to top