Aan de slagGa gratis aan de slag

Scatterplots for multiple pairs of data

In the previous exercise, you saw a numerical representation of the relationship between pairs of data through a correlation matrix. It's also possible to have a graphical representation of those relationships using scatterplots.

Specifically, the relationship between pairs() of time series is represented by a facetted scatterplot of all pairs at once. This is very convenient for a quick comparison between pairs of time series.

In this exercise, you will draw scatterplots of the stock data in my_data from the previous exercise.

Deze oefening maakt deel uit van de cursus

Visualizing Time Series Data in R

Cursus bekijken

Oefeninstructies

  • Draw the scatterplots for all possible pairs in my_data
  • Remove the lower triangle of the scatterplot matrix by setting the lower.panel argument to NULL

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Create scatterplot matrix


# Create upper panel scatterplot matrix
Code bewerken en uitvoeren