For the following questions, refer to this table, named planet-data
.
How would you use the plotting library to make this scatter plot?
( ) plot(planet-data, "distance_from_sun", "orbital_speed")
( ) scatter-plot(planet-data, "orbital_speed", "distance_from_sun")
( ) scatter-plot(planet-data, "distance_from_sun", "orbital_speed")
( ) plot(planet-data, "orbital_speed, "distance_from_sun")
scatter-plot(planet-data, "distance_from_sun", "orbital_speed")
The scatter-plot function takes in the name of the table, the string column name for the x-axis, and the string column name for the y-axis.
Fill in the blanks to create this pie chart:
pie-chart(planet-data, [arg1], [arg2])
Arg1: ______
Arg2: ______
Arg1: "planet"
Arg2: "mass"
The pie-chart function takes in the name of the table, the string column name for the labels, and the string column name for the values in the pie chart.
Which of these answer choices correctly displays a histogram that shows the distribution of the planets' mass with a bin-width of 50?
( ) histogram(planet-data, 50, "mass")
( ) histogram(planet-data, "planet", "mass")
( ) histogram(planet-data, "mass", "planet")
( ) histogram(planet-data, "mass", 50)
histogram(planet-data, "mass", 50)
The histogram function takes in the name of the table, the string column name for the value to analyze, and a number for the bin-width of the histogram.
True or False– The functions in the plotting library all output data of type Plot.
( ) True
( ) False
False
The plotting functions all output data of type Image.
Write the function call to produce this graph.
bar-chart(planet-data, "planet", "radius")
The bar-chart function takes in the name of the table, the string column name for the x-axis, and the string column name for the y-axis.
Write the function call to produce this graph.
box-plot(planet-data, "radius")
The box-plot function takes in the name of the table and the string column name of the value to analyze.