Week 11 viz: Interactive viz

You can make interactive data visualizations in either R or Tableau!

Tableau

One benefit of Tableau is that you get interactivity (brushing and linking) “for free.” They also do some device size customization for free, which is one of the things people talk about with dashboards. Lots of people make dashboards using Tableau. Some examples:

(Data filters are the hardest part of Tableau dashboards, in my opinion.)

R

In R, it takes a little more work. If you want to make a fancy dashboard, you probably need to use the Shiny app. Here are some examples of Shiny dashboards:

It’s a bit outside the scope of this class to make shiny apps, but I recommend the book Interactive web-based data visualization with R, plotly, and shiny, by Carson Sievert, as well as the main page for Shiny on the Posit website.

However, there is an easy way to make any ggplot2 graphic interactive– the plotly library, accessed through ggplotly!

  • Quarto doc with a little code

Viz of the week

For this visualization of the week, I’d like you to try to create an interactive graphic or dashboard (in Tableau or R). Clean up the labels, titles, and data filters. Ideally, you would use GSS data (either from NORC or my download), but any data is fine.

Submit something to show me you made an interactive visualization.

Preferred submission: a link to an interactive dashboard on Tableau Cloud, or a rendered HTML document from Quarto that includes the interactive viz. I believe that if you publish your dashboard in Tableau Online, you can share the link to your dashboard with me and I can see it. For example, here is a dashboard I made.

Copy the link and submit to Canvas.

Okay submission format: downloaded version of your Tableau dashboard as an image.

Acceptable: screenshot of your dashboard or interactive viz.