Get startedGet started for free

Bar charts

In this exercise, you'll use plotly to create a bar chart from scratch in order to explore the distribution of the video game genres represented in games sold between 1980 and 2016.

The data for this bar chart is contained in the Genre column of the vgsales data frame.

Note that plotly has already been loaded for you.

This exercise is part of the course

Interactive Data Visualization with plotly in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create a frequency for Genre
genre_table <- vgsales %>%
	___ 
Edit and Run Code