Article: Course and Assignment Design

Data Visualization (with and without AI)


Derek’s Recommendation

This is a "green light" activity in which Rich asks students to explore how generative AI might help them accomplish the given task. However, this particular task is one that current AI tools don't do well, which creates a "time for telling" moment when students (a) learn something about data visualization and (b) realize certain limitations of AI.

A donut plot is VERY similar to a nested pie chart. In the diamonds dataset in R, there are five different levels of the _cut_ variable. For the first 30 minutes of class, use a generative AI tool (Microsoft Copilot, ChatGPT, or another of your choosing) to attempt to get code to make a nested pie chart where the inner pie is based on whether a diamond’s carat weight is greater than 1 and the outer pie is based on the cut of the diamond, as shown below.

You must make sure that the AI tool only uses the tidyverse package. No other packages are necessary. Upload the plot you create that is CLOSEST to the target plot, but make use green and purple instead of the colors used here.