Histograms
In this exercise, you'll use plotly
to create a histogram from scratch in order to explore the distribution of the critic scores of video games sold between 1980 and 2016. The data are contained in the Critic_Score
variable in the vgsales
data frame.
As you complete this exercise, think about how the bins influence what you see in the distribution of critic scores.
Note that plotly
has already been loaded for you.
This exercise is part of the course
Interactive Data Visualization with plotly in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create a histogram of Critic_Score
vgsales %>%
plot_ly(x = ___) %>%
___()