Referenced from lesson Displaying Categorical Data (Spring, 2021)
Use Pyret to make the following displays, then write the code on the blank line below:
1 A pie-chart
showing the species
of animals from the shelter.
2 A bar-chart
showing how many animals are fixed or not.
3 A histogram
of the number of pounds
that animals weigh.
4 A box-plot
of the number of weeks
that it takes animals to be adopted.
5 A scatter-plot
, using the animals name
as the labels, age
as the x-axis, and pounds
as the y-axis, for all the animals from the shelter.
6 A scatter-plot
, using the animals species
as the labels, age
as the x-axis, and weeks
as the y-axis, for all the animals from the shelter.
7 (Challenge) An lr-plot
, using the animals species
as the labels, pounds
as the x-axis, and weeks
as the y-axis, for all the animals from the shelter.
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.