Time: 30 minutes
Introduction to visualization, marks, and channels, select and justify a data abstraction to use for a given task, and table data part
answer goes here
rubric={quiz:3}
answer goes here
rubric={quiz:3}
answer goes here
rubric={quiz:5}
Source: https://www.ncsu.edu/labwrite/res/gh/gh-linegraph.html
rubric={quiz:5}
answer goes here
rubric={quiz:3}
answer goes here
rubric={quiz:3}
answer goes here
rubric={quiz:5}
Review the plot below and answer the questions that follow:
# some set-up code to load libraries and data
import pandas as pd
import matplotlib.pyplot as plt
% matplotlib inline
chopstick = pd.read_csv("http://blog.yhat.com/static/misc/data/chopstick-effectiveness.csv")
chopstick.head()
chop_scatter = chopstick.plot.scatter(x = 'Chopstick.Length', y='Food.Pinching.Effeciency', color = "black" )
plt.xlabel('Chopstick length (mm)')
plt.ylabel('Food pinching efficiency')
chop_scatter.set_ylim(25, 50)
chop_scatter.set_xlim(0, 400)
plt.show(chop_scatter)
rubric={quiz:5}
answer goes here
rubric={quiz:4}
# answer goes here
Review the plot below and answer the questions that follow:
mtcars = pd.read_csv("mtcars.csv")
mtcars.head()
import matplotlib.patches as patches
fig1 = plt.figure()
ax1 = fig1.add_subplot(111)
ax1.set_xlim(25,300)
ax1.set_ylim(0,45)
for i in range(0,mtcars.shape[0]):
ax1.add_patch(
patches.Ellipse(
(mtcars.hp.iloc[i], mtcars.mpg.iloc[i] ), # (x,y) position
mtcars.disp.iloc[i]/10, # width
mtcars.gear.iloc[i]**2, # height
)
)
plt.xlabel("horsepower")
plt.ylabel("miles per gallon")
ax1.annotate('bubble width = diplacement/10', xy=(150, 40),xytext=(150, 40))
ax1.annotate('bubble heigth = $gear^{2}$', xy=(150, 38),xytext=(150, 38))
plt.show(fig1)
rubric={quiz:6}
answer goes here
rubric={quiz:4}
answer goes here
rubric={quiz:3}
# answer goes here
Which of these visual encodings supports popout? Answer True or False for each:
rubric={quiz:1}
answer goes here
rubric={quiz:1}
answer goes here
answer goes here
rubric={quiz:1}
answer goes here
answer goes here
rubric={quiz:1}
answer goes here
rubric={quiz:1}
answer goes here
rubric={quiz:1}
answer goes here