Skip to Content
RStudio for R Statistical Computing Cookbook
book

RStudio for R Statistical Computing Cookbook

by Andrea Cirillo
April 2016
Beginner to intermediate content levelBeginner to intermediate
246 pages
5h 20m
English
Packt Publishing
Content preview from RStudio for R Statistical Computing Cookbook

Using pairs.panel() to look at (visualize) correlations between variables

Within the R ecosystem, there are different packages offering ways to represent correlations between variables in a dataset.

In a way, the powerful plot() function, as seen in the previous recipe, can also be useful for correlation spotting, particularly when plotting all variables against one another (refer to the previous recipe for more details).

Nevertheless, among different alternatives, the one I think may give you a quicker and deeper understanding of the relationship between your data is the pairs.panels() function provided by the psych package by William Revelle.

Getting ready

In order to use the pairs.panels() function, we first need to install and load the psych ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Data Analysis Using Jupyter Notebook

Practical Data Analysis Using Jupyter Notebook

Marc Wintjen

Publisher Resources

ISBN: 9781784391034Supplemental Content