Book Image

R Graphs Cookbook Second Edition

Book Image

R Graphs Cookbook Second Edition

Overview of this book

Table of Contents (22 chapters)
R Graphs Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Multivariate continuous data visualization


In this recipe, we will visualize multivariate data with all continuous variables. The plot will look like a table of a bar plot but the important feature of this plot is that we can easily understand the relationship among variables.

Getting ready

Let's call the modified mtcars dataset that we created in the introduction section. Then, we will take only the continuous variables for this recipe:

# Taking subset with only continuous variables
con_dat <- modified_mtcars[c("mpg","disp","drat","wt","qsec")]

To produce multivariable visualization, we need to call the tabplot library. If this is not preinstalled, then users can install it using the following command and then load it:

# To install tabplot library
install.packages("tabplot")

# Loading the library
library(tabplot)

How to do it…

The primary command structure for this visualization is as follows:

tableplot(con_dat)

The resultant plot is very much similar to a bar plot, but it contains all the variables...