Referenced from lesson Data Displays and Lookups
Fill in the tables below, then write the Pyret code that will make that display. The first column has been filled in for you.
1) A pie-chart
showing the species
of animals from the shelter.
Which Rows? | Which Column(s)? | What Display? |
---|---|---|
All the animals |
code:
2) A bar-chart
showing the sex
of animals from the shelter.
Which Rows? | Which Column(s)? | What Display? |
---|---|---|
All the animals |
code:
3) A histogram
of the number of pounds
that animals weigh.
Which Rows? | Which Column(s)? | What Display? |
---|---|---|
All the animals |
code:
4) A box-plot
of the number of pounds
that animals weigh.
Which Rows? | Which Column(s)? | What Display? |
---|---|---|
All the animals |
code:
5) A scatter-plot
, using the animals' species
as the labels, age
as the x-axis, and pounds
as the y-axis.
Which Rows? | Which Column(s)? | What Display? |
---|---|---|
All the animals |
code:
6) A scatterplot
, using the animals' name
as the labels, pounds
as the x-axis, and weeks
as the y-axis.
Which Rows? | Which Column(s)? | What Display? |
---|---|---|
All the animals |
code:
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). Bootstrap:Data Science by Emmanuel Schanzer, Nancy Pfenning, Emma Youndtsmith, Jennifer Poole, Shriram Krishnamurthi, Joe Politz, Ben Lerner, Flannery Denny, and Dorai Sitaram with help from Eric Allatta and Joy Straub is licensed under a Creative Commons 4.0 Unported License. Based on a work at www.BootstrapWorld.org. Permissions beyond the scope of this license may be available by contacting schanzer@BootstrapWorld.org.