xts is a popular format for storing financial data and in this chapter we will learn how to chart daily price data on five ETFs stored in an xts object. We will also customize the tooltip to display our data exactly as we wish. By the end of this chapter, you will be ready to build, color, and label interactive charts for many ETFs.
Tibble data, or data frames, are also a popular data format for financial time series. In this chapter, we will build more interactive line charts, but also explore scatter plots and regression lines for the daily returns of ETFs. By the end of the chapter, you will be ready to visualize the relationships between data stored in a wide tibble and even add model results to your charts.
Tidy tibbles and the tidyverse are becoming very popular and highcharter makes it fast to visualize and customize tidy data. In this chapter, you will learn how to quickly chart data as a line, a scatter plot and a column chart, and you will see how to get creative with including whatever data you wish as part of the tooltip.
“I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.”
Devon Edwards Joseph
Lloyds Banking Group
“DataCamp is the top resource I recommend for learning data science.”
Harvard Business School
“DataCamp is by far my favorite website to learn from.”
Decision Science Analytics, USAA