Exploratory data analysis is one of the most popular techniques to view patterns in data and the pattern of association among variables. In this chapter, we will learn how we can visualize multivariate data in a single plot where both continuous and categorical data can be graphed. The continuous variable can take any values, including decimal points; this can be the age of a person, height, or any numeric value, whereas categorical variables usually take a limited number of values, representing a nominal group. The examples of categorical variables include sex, occupation, and so on. In this chapter, we will use the tabplot
library to produce the plot and view various options of this library.
We will create a dataset by modifying a default dataset in R, which is stored in the mtcars
dataset. We will keep the same variables but with high amount of observation. The following are the variables that are present in the mtcars
dataset: