A simple scatterplot
Now that you have created a time series plot, your task is to create an interactive scatterplot of the trading volume against the date.
The plotly
package and acwi
data set have already been loaded for you.
This exercise is part of the course
Intermediate Interactive Data Visualization with plotly in R
Exercise instructions
- Create a scatterplot of the trading
Volume
(on the y-axis) against theDate
(on the x-axis).
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create a scatterplot with Date on the x-axis
# and Volume on the y-axis
acwi %>%
plot_ly(x = ___, y = ___) %>%
___()