Developing and Analyzing Visualization Quick Check 1 of 51 of 5 Items Question A comma-separated value (CSV) file has four fields labeled name, birth year, gender, and graduation year. What line of code would be appropriate to visualize counts of gender by birthYear with each gender having its own color?(1 point) Responses catplot(x = 'gender',col = "birthYear", data = data, hue = 'birthYear', kind = "count") catplot(x = 'gender',col = "birthYear", data = data, hue = 'birthYear', kind = "count") catplot(x = 'birthYear',col = "gender", data = data, hue = 'birthYear', kind = "count") catplot(x = 'birthYear',col = "gender", data = data, hue = 'birthYear', kind = "count") catplot(x = 'birthYear',col = "gender", data = data, hue = 'gender', kind = "count") catplot(x = 'birthYear',col = "gender", data = data, hue = 'gender', kind = "count") catplot(x = 'gender',col = "birthYear", data = data, hue = 'gender', kind = "count") catplot(x = 'gender',col = "birthYear", data = data, hue = 'gender', kind = "count") Skip to navigation page 17 of 17

1 answer

To visualize counts of gender by birth year with each gender having its own color, the appropriate line of code from the given options would be:

catplot(x = 'gender', col = "birthYear", data = data, hue = 'gender', kind = "count")

This code will create a count plot (using catplot) where the x-axis represents gender, and different plots (columns) will represent different birth years, with the hue differentiating counts of each gender by color.