Day 13 In-Class: Using online resources (code and data)#
…and analyzing and visualizing data#
✅ Put your name here
#
Learning Goals:#
By the end of this assignment, you should be able to:
Compare and evaluate datasets
Make visualizations using tools that you found online
Present a dataset using visualizations
Introduction#
The goal of this assignment is for you and your group to make two or more visualizations of real-world data and then share these visualizations with the rest of the class. This is meant to be a kind of test run of the skills youâll be expected to demonstrate for the semester project.
In the pre-class assignment, you were tasked with finding a dataset and a new plotting tool using online resources. In todayâs assignment, you will be:
Sharing the datasets and plotting tools you found in the pre-class assignment with your group.
Picking (as a group) one dataset to work with
Using some of the plotting tools to make two or more visualizations of the data
Sharing the visualization(s) that you made with the rest of the class
2. Picking one dataset to work with#
✅ Task#
As a group, pick one of the datasets to work with. When deciding on which dataset to use, keep in mind that you will need to use it to make two or more visualizations.
3. Create visualizations for your dataset#
✅ Task#
As a group, create two or more visualizations for this dataset. Once you have basic plots made, spend your time considering ways to improve the plots, make them more readable, or add additional info to the plots.
Example Below are two example plots, which have been created using the data retrieved in the example in the pre-class assignment (i.e., Cocoa Export data taken from the FAO). When presenting plots of this dataset, it might make sense to use the linear plot to note how much of the total exports are coming from just a small handful of countries–most of which are on Africa’s west coast–and put special empahsis on the dominant role played by the Cote d’Ivoire. As a second plot, it would be reasonable use the log plot to talk about how there are still many countries that have some Cocoa bean exports, just significantly less than the top few countries.
Of course, there are other ways that one could visualize this data! Also, additional effort could have been made to make these plots easier to read, given more time.
# Write the code for your visualizations here
# Every member of your group should have a copy of this code in their final notebooks.
4. Present your visualizations to the rest of the class#
✅ Task#
As a group, you will present your visualizations to the rest of the class to tell the rest of the class about the specific dataset that youâve chosen to work with. See Content/In-Class Asssignments/Day 13 Group Presentations for a link where you should make your slides. Put your visualizations on your slide, and decide how you are going to present them to the rest of the class. You can create additional slides for your group, as needed.
Tips for creating good presentation slides:
Use text sparingly. Only give brief bullet points, going into more detail when speaking. People can’t read and listen well at the same time.
Only show code if you feel it’s really necessary, and show as little of it as possible. It is very difficult to read or understand someone else’s code, especially when it’s tiny and on a projector screen.
Use the plt.savefig() to save your plots as images. It is easier and cleaner than screenshotting. Make sure if you change the image size in your slides that it stays the same ratio. You don’t want to squash or stretch it in a way that will make it blurry or difficult to read.
Assignment wrapup#
Please fill out the form that appears when you run the code below. You must completely fill this out in order to receive credit for the assignment!
from IPython.display import HTML
HTML(
"""
<iframe
src="https://cmse.msu.edu/cmse201-ic-survey"
width="800px"
height="600px"
frameborder="0"
marginheight="0"
marginwidth="0">
Loading...
</iframe>
"""
)
Congratulations, you’re done!#
Submit this assignment by uploading your notebook to the course Desire2Learn web page. Go to the “In-Class Assignments” folder, find the appropriate submission link, and upload it there. Make sure your name is on it.
See you next class!
Copyright © 2023, Department of Computational Mathematics, Science and Engineering at Michigan State University, All rights reserved.