Referenced from lesson Grouped Samples
Fill in the tables below, then use Pyret to make the following displays. Record the code you used.
The first table has been filled in for you.
1) A bar-chart
showing how many puppies are fixed or not.
What Rows? | Which Column(s)? | What Display? |
---|---|---|
puppies |
fixed |
bar-chart |
code: bar-chart(puppies, "fixed")
2) A pie-chart
showing how many heavy dogs are fixed or not.
What Rows? | Which Column(s)? | What Display? |
---|---|---|
code:
3) A histogram
of the number of weeks
it takes for a random sample of animals to be adopted.
What Rows? | Which Column(s)? | What Display? |
---|---|---|
code:
4) A box-plot
of the number of pounds
that kittens weigh.
What Rows? | Which Column(s)? | What Display? |
---|---|---|
code:
5) A scatter-plot
of a random sample using name
as the labels, age
as the x-axis, and weeks
as the y-axis.
What Rows? | Which Column(s)? | What Display? |
---|---|---|
code:
6) A scatter-plot
of fixed cats, using species
as the labels, pounds
as the x-axis, and weeks
as the y-axis.
What Rows? | Which Column(s)? | What Display? |
---|---|---|
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.