Professional Documents
Culture Documents
Experiment No 1.2: Aim of The Experiment
Experiment No 1.2: Aim of The Experiment
Semester: 2nd
Date of Performance: 21/02/2021
Subject Name: Data Visualization Subject Code: 20SDT-654
AIM OF THE EXPERIMENT – To understand Basic Plot functions for Data Visualization.
OVERVIEW
The graphics package is used for plotting base graphs like scatter plot, box plot etc. A
complete list of functions with help pages can be obtained by typing : library(help =
"graphics").
1) plot(airquality$Ozone)
Output:
We get a scatter/dot plot here wherein each dot represents the value of the Ozone in mean
parts per billion.
Output:
The plot shows that Wind and Ozone values have a somewhat negative correlation.
3) plot(airquality)
We can quickly discover the relationship between variables by merely looking at the plots drawn
between them.
We can easily style our charts by playing with the arguments of the plot() function.
type argument
The plot function has an argument called typewhich can take in values like p: points, l:
lines,b: both etc. This decides the shape of the output graph.
EVALUATION COLUMN :