Look at the code in the Custom Scatter Plot Starter File.
1 Compare the definitions of age-dot
and species-tag
to what you wrote. Are they the same? If not, what is different?
Answer the following questions about the last line of code in the file, which is commented out.
2 What is the name of the function being used here? How many things are in its Domain?
3 What is the 1st argument? What is its data type?
4 What is the 2nd argument? What is its data type?
5 What is the 3rd argument? What is its data type?
6 What is the 4th argument?
7 What is the data type of the fourth argument in the Domain? If you’re not sure, write down your thinking. What can you rule out? What do you think it might be?
8 Uncomment the last line at the bottom of the file, and click "Run". What does image-scatter-plot
do with its 4th argument?
9 Try changing your age-dot
function to use different colors, or even different shapes! Can you make the size of the shape be one half the age of the animal?
10 On a new line in the Definitions Area, try making an image-scatter-plot
using the species-tag
function.
Click run, and describe what you see.
Understanding Custom Displays
11 Look at the image scatter plot that has dots of different sizes.
Can you draw any conclusions about animals that are both young and lightweight?
12 Looking at that same scatter plot, the director of the shelter says: "Animals that are older and that weigh more than 50 pounds generally take at least 5 weeks to be adopted." Do you agree with this statement? Explain.
13 Look at your image scatter plot with species nametags in red.
What does this chart reveal that we couldn’t see on the original (pounds v. weeks) scatter plot?
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.