Edit the jupyter/ipython notebook file Plotting_Homework.ipynb to perform the requested tasks, showing all your required code. When finished, download as an HTML file and submit the following file to Sakai:
Plotting_Homework.html
Same instructions as before for log.txt: Every individual should separately submit a personal file log.txt. This should be a plain text file with exactly this name. Your homework grade will not be recorded without this file! Include in the file:
If you worked with a consistent partner through the whole assignment, only one of you needs to submit the HTML file, but make sure each partner has their own copy! Each student should separately submit an independently written log.txt file.
In [ ]:
In [ ]:
B. Now make a new plot like the previous with the points colored according to the drv variable.
In [ ]:
C. Now split up the plot above into mini-plots, one for each class variable.
In [ ]:
D. Describe 3 trends you see in the data. For example, how does highway mpg between the compact and suv classes compare? Or what type of wheel drive do pickups tend to have?
In [ ]:
In [ ]:
In [ ]:
In [ ]:
B. Edit the plot you just made so that it only includes the 4 trans variables with the most cars. Also use scale_color_brewer() or scale_color_manual() to change the color of each histogram from the default settings.
In [ ]:
C. Now make a density plot rather than a histogram using the same data from part B. Also, change the colors to a new palette you haven't yet used in this assignment.
In [ ]:
D. Based on this data, does automatic or manual transmission tend to get better highway gas mileage? Explain your reasoning.
In [ ]: