This lecture shows more cool interactive bar charts with plotly and ggplot2. Plotly is the interactive addition to ggplot2. I rely on the Affairs dataset: The independent variable (gender) is categorical and the dependent variable is numerical (number of affairs).