Referenced from lesson Data Displays and Lookups (Spring, 2021)
Fill in the tables below, then use Pyret to make the following displays. Record the code you used.
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 scatter-plot
, 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 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.