0% found this document useful (0 votes)
5 views

BDA Exp 2

BDA Exp 2

Uploaded by

Bhumika Nalawade
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

BDA Exp 2

BDA Exp 2

Uploaded by

Bhumika Nalawade
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

DEPARTMENT OF COMPUTER ENGINEERING

Roll No:

Date:

EXPERIMENT 2

Aim: To study and implement Data visualisation using R


Theory:
Data visualization is the technique used to deliver insights in data using visual cues such as graphs,
charts, maps, and many others. This is useful as it helps in intuitive and easy understanding of the
large quantities of data and thereby make better decisions regarding it.

Data Visualization in R Programming Language


The popular data visualization tools that are available are Tableau, Plotly, R, Google Charts,
Infogram, and Kibana. The various data visualization platforms have different capabilities,
functionality, and use cases. They also require a different skill set. This article discusses the use of R
for data visualization.
R is a language that is designed for statistical computing, graphical data analysis, and scientific
research. It is usually preferred for data visualization as it offers flexibility and minimum required
coding through its packages.

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.

2. Histogram
A histogram is like a bar chart as it uses bars of varying height to represent data distribution.
However, in histogram values are grouped into consecutive intervals called bins. In a
Histogram, continuous values are grouped and displayed in these bins whose size can be
varied.

3. Box Plot
The statistical summary of the given data is presented graphically using a boxplot. A boxplot
depicts information like the minimum and maximum data point, the median value, first and
third quartile, and interquartile range.

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.
5. Heat Map
Heatmap is defined as a graphical representation of data using colours to visualize the value
of the matrix. heatmap () function is used to plot heatmap.

6. Map visualization in R
Here we are using maps package to visualize and display geographical maps using an R
programming language.

7. 3D Graphs in R
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.

Advantages of Data Visualization in R:


 R has the following advantages over other tools for data visualization:
 R offers a broad collection of visualization libraries along with extensive online guidance on
their usage.
 R also offers data visualization in the form of 3D models and multipaned charts.
 Through R, we can easily customize our data visualization by changing axes, fonts, legends,
annotations, and labels.

Graphs of Data visualisation using R:

1.

2.
3.

4.
5.

Conclusion: We learnt about Data visualisation using R and its types and its advantages.

You might also like