Data visualization is the process of representing data using charts, graphs and maps to make information easier to understand. It helps identify patterns, trends and relationships within large datasets. In R, data visualization is widely used because of its strong statistical foundation and graphical capabilities.
R provides built-in plotting functions and advanced packages like ggplot2 and plotly.
It allows high customization of graphs, including colors, labels, themes and layouts.
It supports both basic visualizations and complex statistical graphics.
Types of Data Visualizations
Some of the various types of visualizations offered by R are:
1. Bar Plot
There are two types of bar plots: horizontal and vertical which represent data points as horizontal or vertical bars of certain lengths proportional to the value of the data item. They are generally used for continuous and categorical variable plotting. By setting the horiz parameter to true and false, we can get horizontal and vertical bar plots respectively.
To give a comprehensive statistical description of the data through a visual cue.
To identify the outlier points that do not lie in the inter-quartile range of data.
4. Scatter Plot
A scatter plot is composed of many points on a Cartesian plane. Each point denotes the value taken by two parameters and helps us easily identify the relationship between them.
To show whether an association exists between bivariate data.
To measure the strength and direction of such a relationship.
5. Heat Map
Heatmap is defined as a graphical representation of data using colors to visualize the value of the matrix. heatmap() function is used to plot heatmap.
Here we will use preps() function, This function is used to create 3D surfaces in perspective view. This function will draw perspective plots of a surface over the x–y plane.