This slide contains basics of charts and graphs in R programming language. I also focused on practical knowledge so I tried to give maximum example to understand the concepts.
R is a programming language for statistical analysis and graphics. It is an open-source language developed by statisticians to allow for easy statistical analysis and visualization of data. The document provides an overview of R, discussing its origins, functionality, uses in data science, and popular packages and IDEs used with R. Examples are given of basic R syntax for vectors, matrices, data frames, plotting, and applying functions to data.
This presentation educates you about R - data types in detail with data type syntax, the data types are - Vectors, Lists, Matrices, Arrays, Factors, Data Frames.
For more topics stay tuned with Learnbay.
Learn the basics of data visualization in R. In this module, we explore the Graphics package and learn to build basic plots in R. In addition, learn to add title, axis labels and range. Modify the color, font and font size. Add text annotations and combine multiple plots. Finally, learn how to save the plots in different formats.
This document discusses various data types and structures in R. It begins by defining data types as categories of values like numeric and character. Data structures are described as how data is stored, such as vectors, factors, matrices, data frames, and lists. Examples are provided for each structure showing how to create them and access their elements. The document concludes by demonstrating how to work with built-in datasets in R, including viewing, summarizing, and accessing their columns and rows.
The R language is a project designed to create a free, open source language which can be used as a replacement for the S-PLUS language, originally developed as the S language at AT&T Bell Labs, and currently marketed by Insightful Corporation of Seattle, Washington. R is an open source implementation of S, and differs from S-plus largely in its command-line only format.
Topics Covered:
1.Introduction to R
2.Installing R
3.Why Learn R
4.The R Console
5.Basic Arithmetic and Objects
6.Program Example
7.Programming with Big Data in R
8.Big Data Strategies in R
9.Applications of R Programming
10.Companies Using R
11.What R is not so good at
12.Conclusion
This document discusses visualizing data in R using various packages and techniques. It introduces ggplot2, a popular package for data visualization that implements Wilkinson's Grammar of Graphics. Ggplot2 can serve as a replacement for base graphics in R and contains defaults for displaying common scales online and in print. The document then covers basic visualizations like histograms, bar charts, box plots, and scatter plots that can be created in R, as well as more advanced visualizations. It also provides examples of code for creating simple time series charts, bar charts, and histograms in R.
It covers- Introduction to R language, Creating, Exploring data with Various Data Structures e.g. Vector, Array, Matrices, and Factors. Using Methods with examples.
Exploratory data analysis in R - Data Science ClubMartin Bago
How to analyse new dataset in R? What libraries to use, and what commands? How to understand your dataset in few minutes? Read my presentation for Data Science Club by Exponea and find out!
This document outlines an introduction to R graphics using ggplot2 presented by the Harvard MIT Data Center. The presentation introduces key concepts in ggplot2 including geometric objects, aesthetic mappings, statistical transformations, scales, faceting, and themes. It uses examples from the built-in mtcars dataset to demonstrate how to create common plot types like scatter plots, box plots, and regression lines. The goal is for students to be able to recreate a sample graphic by the end of the workshop.
The document discusses importing and exporting data in R. It describes how to import data from CSV, TXT, and Excel files using functions like read.table(), read.csv(), and read_excel(). It also describes how to export data to CSV, TXT, and Excel file formats using write functions. The document also demonstrates how to check the structure and dimensions of data, modify variable names, derive new variables, and recode categorical variables in R.
DATA WAREHOUSE IMPLEMENTATION BY SAIKIRAN PANJALASaikiran Panjala
This document discusses data warehouses, including what they are, how they are implemented, and how they can be further developed. It provides definitions of key concepts like data warehouses, data cubes, and OLAP. It also describes techniques for efficient data cube computation, indexing of OLAP data, and processing of OLAP queries. Finally, it discusses different approaches to data warehouse implementation and development of data cube technology.
Looking for a computer institute to learn Full Stack development and Digital Marketing? Our institute offers comprehensive courses in both areas, providing students with the skills and knowledge needed to succeed in today's digital landscape
Concurrency control mechanisms use various protocols like lock-based, timestamp-based, and validation-based to maintain database consistency when transactions execute concurrently. Lock-based protocols use locks on data items to control concurrent access, with two-phase locking being a common approach. Timestamp-based protocols order transactions based on timestamps to ensure serializability. Validation-based protocols validate that a transaction's writes do not violate serializability before committing its writes.
The presentation is a brief case study of R Programming Language. In this, we discussed the scope of R, Uses of R, Advantages and Disadvantages of the R programming Language.
Polynomial regression models the relationship between variables as a polynomial equation rather than a linear one. It allows for modeling of curvilinear relationships. The document discusses the definition of polynomial regression, why it is used, its history, the regression model and matrix form, how to implement it in Matlab, its advantages in fitting flexible curves, and its disadvantages related to sensitivity to outliers.
This slide is used to do an introduction for the matplotlib library and this will be a very basic introduction. As matplotlib is a very used and famous library for machine learning this will be very helpful to teach a student with no coding background and they can start the plotting of maps from the ending of the slide by there own.
Data mining Measuring similarity and desimilarityRushali Deshmukh
The document defines key concepts related to data including:
- Data is a collection of objects and their attributes. An attribute describes a property of an object.
- Attributes can be nominal, ordinal, interval, or ratio scales depending on their properties.
- Similarity and dissimilarity measures quantify how alike or different two objects are based on their attributes.
- Data is organized in a data matrix while dissimilarities are stored in a dissimilarity matrix.
This presentation educates you about R - Decision Tree, Examples of use of decision tress with basic syntax, Input Data and out data with chart.
For more topics stay tuned with Learnbay.
Introduction to Exploratory Data Analysis.To access the source code click here https://github.com/Davisy/Exploratory-Data-Analysis-
This document summarizes a student's research project on improving the performance of real-time distributed databases. It proposes a "user control distributed database model" to help manage overload transactions at runtime. The abstract introduces the topic and outlines the contents. The introduction provides background on distributed databases and the motivation for the student's work in developing an approach to reduce runtime errors during periods of high load. It summarizes some existing research on concurrency control in centralized databases.
The Boyer-Moore string matching algorithm was developed in 1977 and is considered one of the most efficient string matching algorithms. It works by scanning the pattern from right to left and shifting the pattern by multiple characters if a mismatch is found, using preprocessing tables. The algorithm constructs a bad character shift table during preprocessing that stores the maximum number of positions a mismatched character can shift the pattern. It then aligns the pattern with the text and checks for matches, shifting the pattern right by the value in the table if a mismatch occurs.
This document provides an overview of various data structures in R including vectors, lists, factors, matrices, and data frames. It discusses how to create, subset, and coerce between these structures. It also covers handling missing data and common data type conversions. The document recommends several books and online resources for learning more about R programming and statistics.
The goal of this workshop is to introduce fundamental capabilities of R as a tool for performing data analysis. Here, we learn about the most comprehensive statistical analysis language R, to get a basic idea how to analyze real-word data, extract patterns from data and find causality.
Data mining , Knowledge Discovery Process, ClassificationDr. Abdul Ahad Abro
The document provides an overview of data mining techniques and processes. It discusses data mining as the process of extracting knowledge from large amounts of data. It describes common data mining tasks like classification, regression, clustering, and association rule learning. It also outlines popular data mining processes like CRISP-DM and SEMMA that involve steps of business understanding, data preparation, modeling, evaluation and deployment. Decision trees are presented as a popular classification technique that uses a tree structure to split data into nodes and leaves to classify examples.
Exploratory data analysis in R - Data Science ClubMartin Bago
How to analyse new dataset in R? What libraries to use, and what commands? How to understand your dataset in few minutes? Read my presentation for Data Science Club by Exponea and find out!
This document outlines an introduction to R graphics using ggplot2 presented by the Harvard MIT Data Center. The presentation introduces key concepts in ggplot2 including geometric objects, aesthetic mappings, statistical transformations, scales, faceting, and themes. It uses examples from the built-in mtcars dataset to demonstrate how to create common plot types like scatter plots, box plots, and regression lines. The goal is for students to be able to recreate a sample graphic by the end of the workshop.
The document discusses importing and exporting data in R. It describes how to import data from CSV, TXT, and Excel files using functions like read.table(), read.csv(), and read_excel(). It also describes how to export data to CSV, TXT, and Excel file formats using write functions. The document also demonstrates how to check the structure and dimensions of data, modify variable names, derive new variables, and recode categorical variables in R.
DATA WAREHOUSE IMPLEMENTATION BY SAIKIRAN PANJALASaikiran Panjala
This document discusses data warehouses, including what they are, how they are implemented, and how they can be further developed. It provides definitions of key concepts like data warehouses, data cubes, and OLAP. It also describes techniques for efficient data cube computation, indexing of OLAP data, and processing of OLAP queries. Finally, it discusses different approaches to data warehouse implementation and development of data cube technology.
Looking for a computer institute to learn Full Stack development and Digital Marketing? Our institute offers comprehensive courses in both areas, providing students with the skills and knowledge needed to succeed in today's digital landscape
Concurrency control mechanisms use various protocols like lock-based, timestamp-based, and validation-based to maintain database consistency when transactions execute concurrently. Lock-based protocols use locks on data items to control concurrent access, with two-phase locking being a common approach. Timestamp-based protocols order transactions based on timestamps to ensure serializability. Validation-based protocols validate that a transaction's writes do not violate serializability before committing its writes.
The presentation is a brief case study of R Programming Language. In this, we discussed the scope of R, Uses of R, Advantages and Disadvantages of the R programming Language.
Polynomial regression models the relationship between variables as a polynomial equation rather than a linear one. It allows for modeling of curvilinear relationships. The document discusses the definition of polynomial regression, why it is used, its history, the regression model and matrix form, how to implement it in Matlab, its advantages in fitting flexible curves, and its disadvantages related to sensitivity to outliers.
This slide is used to do an introduction for the matplotlib library and this will be a very basic introduction. As matplotlib is a very used and famous library for machine learning this will be very helpful to teach a student with no coding background and they can start the plotting of maps from the ending of the slide by there own.
Data mining Measuring similarity and desimilarityRushali Deshmukh
The document defines key concepts related to data including:
- Data is a collection of objects and their attributes. An attribute describes a property of an object.
- Attributes can be nominal, ordinal, interval, or ratio scales depending on their properties.
- Similarity and dissimilarity measures quantify how alike or different two objects are based on their attributes.
- Data is organized in a data matrix while dissimilarities are stored in a dissimilarity matrix.
This presentation educates you about R - Decision Tree, Examples of use of decision tress with basic syntax, Input Data and out data with chart.
For more topics stay tuned with Learnbay.
Introduction to Exploratory Data Analysis.To access the source code click here https://github.com/Davisy/Exploratory-Data-Analysis-
This document summarizes a student's research project on improving the performance of real-time distributed databases. It proposes a "user control distributed database model" to help manage overload transactions at runtime. The abstract introduces the topic and outlines the contents. The introduction provides background on distributed databases and the motivation for the student's work in developing an approach to reduce runtime errors during periods of high load. It summarizes some existing research on concurrency control in centralized databases.
The Boyer-Moore string matching algorithm was developed in 1977 and is considered one of the most efficient string matching algorithms. It works by scanning the pattern from right to left and shifting the pattern by multiple characters if a mismatch is found, using preprocessing tables. The algorithm constructs a bad character shift table during preprocessing that stores the maximum number of positions a mismatched character can shift the pattern. It then aligns the pattern with the text and checks for matches, shifting the pattern right by the value in the table if a mismatch occurs.
This document provides an overview of various data structures in R including vectors, lists, factors, matrices, and data frames. It discusses how to create, subset, and coerce between these structures. It also covers handling missing data and common data type conversions. The document recommends several books and online resources for learning more about R programming and statistics.
The goal of this workshop is to introduce fundamental capabilities of R as a tool for performing data analysis. Here, we learn about the most comprehensive statistical analysis language R, to get a basic idea how to analyze real-word data, extract patterns from data and find causality.
Data mining , Knowledge Discovery Process, ClassificationDr. Abdul Ahad Abro
The document provides an overview of data mining techniques and processes. It discusses data mining as the process of extracting knowledge from large amounts of data. It describes common data mining tasks like classification, regression, clustering, and association rule learning. It also outlines popular data mining processes like CRISP-DM and SEMMA that involve steps of business understanding, data preparation, modeling, evaluation and deployment. Decision trees are presented as a popular classification technique that uses a tree structure to split data into nodes and leaves to classify examples.
The document discusses exploratory data analysis (EDA) techniques in R. It explains that EDA involves analyzing data using visual methods to discover patterns. Common EDA techniques in R include descriptive statistics, histograms, bar plots, scatter plots, and line graphs. Tools like R and Python are useful for EDA due to their data visualization capabilities. The document also provides code examples for creating various graphs in R.
This document provides an introduction and overview of graphics and plotting in R. It discusses high level and low level plotting functions, interacting with graphics, and modifying plots. It also covers plotting different variable types including dichotomous, categorical, ordinal, and continuous variables. Examples are provided for various plot types including histograms, bar plots, dot plots, boxplots, and more.
This document provides an introduction to using R and RStudio. It discusses installing R and RStudio, the four windows in RStudio (source editor, console, environment/history, and plots/files), and basic commands and functions for running code, saving scripts, clearing the screen, commenting lines, and getting help. It also covers creating and manipulating variables and vectors, importing and exporting data, generating basic plots like bar plots, pie charts and histograms, and importing/exporting data.
Week-3 – System RSupplemental material1Recap •.docxhelzerpatrina
Week-3 – System R
Supplemental material
1
Recap
• R - workhorse data structures
• Data frame
• List
• Matrix / Array
• Vector
• System-R – Input and output
• read() function
• read.table and read.csv
• scan() function
• typeof() function
• Setwd() function
• print()
• Factor variables
• Used in category analysis and statistical modelling
• Contains predefined set value called levels
• Descriptive statistics
• ls() – list of named objects
• str() – structure of the data and not the data itself
• summary() – provides a summary of data
• Plot() – Simple plot
2
Descriptive statistics - continued
• Summary of commands with single-value result. These commands will work on variables
containing numeric value.
• max() ---- It shows the maximum value in the vector
• min() ----- It shows the minimum value in the vector
• sum() ----- It shows the sum of all the vector elements.
• mean() ---- It shows the arithmetic mean for the entire vector
• median() – It shows the median value of the vector
• sd() – It shows the standard deviation
• var() – It show the variance
3
Descriptive statistics - single value results -
example
temp is the name of the vector
containing all numeric values
4
• log(dataset) – Shows log value for each
element.
• summary(dataset) –shows the summary
of values
• quantile() - Shows the quantiles by
default—the 0%, 25%, 50%, 75%, and
100% quantiles. It is possible to select
other quantiles also.
Descriptive statistics - multiple value results -
example
5
Descriptive Statistics in R for Data Frames
• Max(frame) – Returns the largest value in the entire data frame.
• Min(frame) – Returns the smallest value in the entire data frame.
• Sum(frame) – Returns the sum of the entire data frame.
• Fivenum(frame) – Returns the Tukey summary values for the entire
data frame.
• Length(frame)- Returns the number of columns in the data frame.
• Summary(frame) – Returns the summary for each column.
6
Descriptive Statistics in R for Data Frames -
Example
7
Descriptive Statistics in R for Data Frames –
RowMeans example
8
Descriptive Statistics in R for Data Frames –
ColMeans example
9
Graphical analysis - simple linear regression model
in R
• Logistic regression is implemented to understand if the dependent
variable is a linear function of the independent variable.
• Logistic regression is used for fitting the regression curve.
• Pre-requisite for implementing linear regression:
• Dependent variable should conform to normal distribution
• Cars dataset that is part of the R-Studio will be used as an example to
explain linear regression model.
10
Creating a simple linear model
• cars is a dataset preloaded into
System-R studio.
• head() function prints the first
few rows of the list/df
• cars dataset contains two major
columns
• X = speed (cars$speed)
• Y = dist (cars$dist)
• data() function is used to list all
the active datasets in the
environment.
• ...
R and Visualization: A match made in HeavenEdureka!
This document outlines an R training course on data visualization and spatial analysis. The course covers basic and advanced graphing techniques in R, including customizing graphs, color palettes, hexbin plots, tabplots, and mosaics. It also demonstrates spatial analysis examples using shapefiles and raster data to visualize and analyze geographic data in R.
R and Visualization: A match made in HeavenEdureka!
This document discusses using R for data visualization and analytics. It covers creating basic and advanced graphs in R, customizing graphical parameters, and learning the basics of grammar of graphics. The document outlines topics that will be covered, including creating pie charts, scatter plots, line graphs, bar graphs, histograms, density plots, box plots, and more advanced graphs. It also discusses customizing graphs by changing colors, titles, axes, and backgrounds. Color palettes and the RColorBrewer package are presented as ways to customize colors in graphs.
pie chart ppt.pdf ppt on pie chart. Veri formalrjyotisingh123
Pie charts represent proportional data by slicing a circle into sections. This document discusses pie charts in R, including how to create them from single numeric vectors or data frames, customize aspects like labels, colors, and direction, and provides examples. Pie charts in R are created using the pie() function, which takes a positive numeric vector as input and can be customized through additional parameters to control visual properties and labels. Examples demonstrate basic pie charts on sample data and how to add customization parameters.
Background This course is all about data visualization. However, we.docxrosemaryralphs52525
This document provides instructions for a two-part data visualization assignment using RStudio. For part 1, students will analyze a unique dataset by exploring its structure, calculating summary statistics, and visualizing correlations. Screenshots of the analysis must be provided. For part 2, students will create various visualizations of the data, including pie charts, bar plots, histograms, box plots, and scatter plots. Screenshots of the visualizations must be submitted along with an APA style cover page in one Word document.
A picture speaks a thousand words - Data Visualisation with RBarbara Fusinska
This document provides an overview of data visualization techniques using R. It discusses exploratory data analysis and the key elements. Various visualizations are demonstrated on a dataset of online course data including bar plots, histograms, scatter plots comparing base, lattice and ggplot2 packages. Additional techniques like treemaps, interactive graphs using plotly, and network visualizations using igraph and visNetwork are also covered.
The document discusses various data visualization techniques using Matplotlib in Python. It covers creating basic line plots and scatter plots, customizing plots by adding labels, legends, colors and styles. It also discusses different chart types like pie charts, bar charts, histograms and boxplots. Advanced techniques like showing correlations and time series analysis are also covered. The document provides code examples for each visualization technique.
In this tutorial, we learn to create univariate bar plots using the Graphics package in R. We also learn to modify graphical parameters associated with the bar plot.
This document defines statistics and describes different types of graphs used to present statistical data. It discusses horizontal, upward, and downward movement in data and defines common terms. Pie charts, bar graphs, and line graphs are explained as ways to illustrate numerical proportions and trends in data over time. Pie charts show proportions with circular slices, bar graphs use rectangular bars to compare categories, and line graphs track trends and rates of change.
This document introduces data visualization in Python using Pandas. It discusses different chart types (line, bar, pie graphs), their advantages and disadvantages. Examples are provided to generate line, bar and pie charts from DataFrames to visualize and compare data. The document also demonstrates how to enhance charts by adding a title, changing labels and colors.
This document provides an overview of various plotting functions in R for visualizing data including quantile-quantile plots, barplots, boxplots, interaction plots, density plots, 3D plots, and adjusting graphical parameters such as colors, sizes, fonts and saving plots. Key functions discussed are qqnorm, qqline, barplot, boxplot, interaction.plot, density, persp, contour, par, and devices like pdf, jpeg for saving plots.
Introduction to R Short course Fall 2016Spencer Fox
The document provides instructions for an introductory R session, including downloading materials from a GitHub repository and opening an R project file. It outlines logging in, downloading an R project folder containing intro materials, and opening the project file in RStudio.
1. This tutorial covers using the ggplot2 package in R to visualize data. It demonstrates basic functions like qplot() to produce plots with a single line of code.
2. qplot() is used to visualize relationships in the diamonds dataset between variables like price and carat using scatter plots. Additional parameters like color and shape map variables to different plot aspects.
3. Other geoms like smooth, boxplot, and histogram are used to add trends, summarize distributions, and compare groups in the data. Faceting allows splitting plots by variables. Maps from other packages can also be visualized.
RAID (Redundant Array of Independent Disks) technology was invented in 1987 to improve data storage performance and reliability. It combines multiple disk drive components into one or more logical units. There are different RAID levels that determine how disk arrays are used, with RAID 0 through RAID 6 being the standard levels. RAID levels use techniques like striping, mirroring, and parity to provide features like fault tolerance, high throughput, and data redundancy. Each level has advantages and disadvantages for performance, reliability, and capacity.
This presentation focus on the basic concept of pointers. so that students can easily understand. it also contains basic operations performed by pointer variables and implementation using c language.
This document provides an overview of sorting algorithms. It defines sorting as arranging data in a particular order like ascending or descending. Common sorting algorithms discussed include bubble sort, selection sort, insertion sort, merge sort, and quick sort. For each algorithm, the working method, implementation in C, time and space complexity is explained. The document also covers sorting terminology like stable vs unstable sorting and adaptive vs non-adaptive algorithms. Overall, the document serves as a comprehensive introduction to sorting and different sorting techniques.
Searching is an extremely fascinating and useful computer science technique. It helps to find the desired object with its location and number of occurrences. The presentation includes the basic principles, algorithms and c-language implementation.
This presentation focus on the optimization problem-solving method i.e. greedy method. It also included a basic definition, components of the algorithm, effective steps, general algorithm, and applications.
This is a very important type of algorithm paradigm which is mostly used to solve any kind of problems like sorting ( merge sort, quick sort), binary search, Tower of Hanoi, etc.
An array is a very important derived data type in the C programming language. This presentation contains basic things about arrays like definition, initialization, their types, and examples.
loops play a vital role in any programming language, they allow the programmer to write more readable and effective code. The looping concept also allows us to reduce the number of lines.
This tutorial explains about linked List concept. it contains types of linked list also. All possible graphical representations are included for better understanding.
This document discusses different types of data structures, including linear and non-linear structures. It focuses on linear structures like arrays, stacks, and queues. Stacks follow LIFO principles with push and pop operations. Queues follow FIFO principles with enqueue and dequeue operations. Real-world examples and algorithms for common stack and queue operations are provided.
This tutorial helps beginners to understand, how a variety of if statements help in decision making in c programming. It also contains flow charts and illustrations to improve comprehension
"A short and knowledgeable concept about Algorithm "CHANDAN KUMAR
This document discusses algorithms and their properties. It defines an algorithm as a finite set of well-defined instructions to solve a problem. There are five criteria for writing algorithms: they must have inputs and outputs, be definite, finite, and effective. Algorithms use notation like step numbers, comments, and termination statements. Common algorithm types are dynamic programming, greedy, brute force, and divide and conquer. An example algorithm calculates the average of four numbers by reading inputs, computing the sum, calculating the average, and writing the output. Key patterns in algorithms are sequences, decisions, and repetitions.
Optimize Indoor Air Quality with Our Latest HVAC Air Filter Equipment Catalogue
Discover our complete range of high-performance HVAC air filtration solutions in this comprehensive catalogue. Designed for industrial, commercial, and residential applications, our equipment ensures superior air quality, energy efficiency, and compliance with international standards.
📘 What You'll Find Inside:
Detailed product specifications
High-efficiency particulate and gas phase filters
Custom filtration solutions
Application-specific recommendations
Maintenance and installation guidelines
Whether you're an HVAC engineer, facilities manager, or procurement specialist, this catalogue provides everything you need to select the right air filtration system for your needs.
🛠️ Cleaner Air Starts Here — Explore Our Finalized Catalogue Now!
UNIT-5-PPT Computer Control Power of Power SystemSridhar191373
Introduction
Conceptual Model of the EMS
EMS Functions and SCADA Applications.
Time decomposition of the power system operation.
Open Distributed system in EMS
OOPS
Bituminous binders are sticky, black substances derived from the refining of crude oil. They are used to bind and coat aggregate materials in asphalt mixes, providing cohesion and strength to the pavement.
Module4: Ventilation
Definition, necessity of ventilation, functional requirements, various system & selection criteria.
Air conditioning: Purpose, classification, principles, various systems
Thermal Insulation: General concept, Principles, Materials, Methods, Computation of Heat loss & heat gain in Buildings
This presentation outlines testing methods and equipment for evaluating gas-phase air filtration media using flat sheet samples, in accordance with ISO 10121 standards—specifically designed for assessing the performance of media used in general ventilation and indoor air quality applications.
MODULE 5 BUILDING PLANNING AND DESIGN SY BTECH ACOUSTICS SYSTEM IN BUILDINGDr. BASWESHWAR JIRWANKAR
: Introduction to Acoustics & Green Building -
Absorption of sound, various materials, Sabine’s formula, optimum reverberation time, conditions for good acoustics Sound insulation:
Acceptable noise levels, noise prevention at its source, transmission of noise, Noise control-general considerations
Green Building: Concept, Principles, Materials, Characteristics, Applications
This presentation provides a detailed overview of air filter testing equipment, including its types, working principles, and industrial applications. Learn about key performance indicators such as filtration efficiency, pressure drop, and particulate holding capacity. The slides highlight standard testing methods (e.g., ISO 16890, EN 1822, ASHRAE 52.2), equipment configurations (such as aerosol generators, particle counters, and test ducts), and the role of automation and data logging in modern systems. Ideal for engineers, quality assurance professionals, and researchers involved in HVAC, automotive, cleanroom, or industrial filtration systems.
2. Introduction
Since we know that a huge amount of data is generated when
it comes to interpreting any sector
To acquire significant insights, it is usually preferable to depict
data through charts and graphs rather than scanning large
Excel sheets.
The R programming language is mostly used to depict data
graphically in software for statistics and data analytics.
3. The R programming language includes some simple and easy
techniques for converting data into visually appealing features
such as graphs and charts.
In R, charts and graphs are used to graphically depict the
data.
R Programming language has numerous libraries to create
charts and graphs.
There are numerous types of charts and graphs are present in
R language such as pie chart, scatter graph, bar plot, box plot,
mosaic plot, dot chart, coplot, histogram, etc.
4. Pie Chart
A pie chart is a visual depiction of values as colored slices of a
circle.
The slices are identified, and the graphic also shows the
numbers that correlate to each slice.
The pie chart is made in R using the pie() function, which
requires a vector input of positive values.
The extra options are used to customize labels, color, and
title, among other things.
5. Syntax:
pie(x, labels, radius, main, col, clockwise)
vector
Description
radius of
the circle
Direction
color
palette
Title
6. Here,
x indicates a vector that contain numerical values.
labels is used to describe the slices.
radius indicates the radius of the circle of the pie chart.
(value between −1 and +1).
The chart's title is indicated by the main.
The color palette is indicated by col.
The logical value clockwise indicates whether the slices are
drawn clockwise or anticlockwise.
7. Example-1
We can create a very simple pie-chart with the help of only two
parameters such as the input vector and labels.
# Firstly we Create data i.e. vector for the chart.
x <- c(35, 60, 20, 40)
# After that naming labels of slices
labels <- c(“INDIA", "NEW YORK", “NEW DELHI", "MUMBAI")
# Call pie() function to Plot the chart
pie(x,labels)
9. Example- 2
#The below script will create a pie chart and save the pie chart in
the current R working directory.
x <- c(35, 60, 20, 40)
labels <- c(“KANPUR", “BAREILLY", “NEW DELHI", "MUMBAI")
# Call png() function to give the chart file name.
png(file = "city.png")
pie(x,labels)
# To Save the file.
dev.off()
10. Example- 3
#We can expand the features of the pie chart by adding more parameters
to the function. The below script shows it.
pie(x, labels, main="City Pie Chart")
12. Example- 5
pie(x, labels, radius= 1, main="City Pie Chart", col="RED")
Note: For rainbow color pallet, Use rainbow
function.
13. 3D Pie Chart
We can also draw pie chart with 3 dimensions i.e. 3D using
additional packages.
plotrix package has a function called pie3D() that is used for
creating 3D pie chart.
14. Example- 6
# Install Package
Install.packages(“plotrix”)
# Get the library.
library(plotrix)
# Create data for the graph.
x <- c(35, 60, 20, 40)
labels <- c(“KANPUR", “BAREILLY", “NEW DELHI",
"MUMBAI")
pie3D(x,labels = lbl,explode = 0.1, main = "Pie Chart of
Countries ")
15. Histograms
A histogram represents the frequencies of values of a variable
bucketed into ranges.
Histogram is similar to bar chat but the difference is it groups
the values into continuous ranges i.e. In a histogram, there
are no gaps between the bars, unlike a bar graph.
Each bar in histogram represents the height of the number of
values present in that range.
16. R creates histogram using hist() function.
This function takes a vector as an input and uses some more
parameters to plot histograms.
We Use histograms when we have continuous
measurements and want to understand the distribution of
values and look for outliers.
18. Here
v indicates vector that contain numeric values.
Title of the chart is indicated by main
col parameter is used to set color of the bars.
To set border color of each bar, border parameter is used.
xlab is used to give description of x-axis.
xlim and ylim are used to specify the range of values on the x-
axis and y-axis respectively.
breaks is used to mention the width of each bar.
19. Example- 1
# Create histogram
# Create data for the graph.
v <- c(7,11,19,7,40,12,22,31,44,55,43)
# Create the histogram.
hist( v, xlab = "Weight", col = "yellow",
border = "blue")
20. Example- 2
The xlim and ylim parameters can be used to set the range of
values allowed in the X and Y axes, respectively.
Breaks can be used to determine the width of each bar.
v <- c(7,11,19,7,40,12,22,31,44,55,43)
hist(v,xlab = "Weight",col = "green",border =
"red",xlim = c(0,40), ylim = c(0,5), breaks = 5)
21. Bar Charts
A bar chart depicts data as rectangular bars whose length is
proportionate to the variable's value.
The function barplot() in R is used to make bar charts.
In a bar chart, R can create both vertical and horizontal bars.
Each of the bars in a bar chart can be colored differently.
23. Here,
H indicates vector or matrix that contain numeric values.
xlab is the label for x axis.
ylab is the label for y axis.
main is the title of the bar chart.
names.arg is a vector of names appearing under each bar.
col is used to give colors to the bars in the graph.
24. Example- 1
Create a simple bar chart
# Create the data for the bar chart
H <- c(9,15,23,13,22)
# Plot the bar chart
barplot(H)
25. Example- 2
Create a simple bar chart using vector and names of each bar.
# Create the data for the bar chart
H <- c(9,15,23,13,22)
names <- c("March","April","May","June","July")
# Plot the bar chart
barplot(H,names.arg = names)
26. Example- 3
Create a bar chart using other parameters.
H <- c(9,15,23,13,22)
names <- c("March","April","May","June","July")
barplot(H,names.arg=names,xlab="Months",ylab=“
Expenditure",col="yellow", main="Expenditure
chart",border="black")
Or
We also use parameters in this sequence.
barplot(H,xlab="Months",ylab="Expenditure",main="Expenditur
e chart", names.arg = names, col= "blue")
27. Line Graph
A line chart is a graph that connects a set of points by
connecting them with line segments.
These points are sorted according to the value of one of their
coordinates (typically the x-coordinate).
Line charts are commonly used to identify data trends.
The line graph was created using R's plot() function.
28. Syntax:
plot(v, type, main, col, xlab, ylab)
vector
Title
Draw points
or lines
label for
x axis
label for y
axis
colors to both the points
and lines
29. Here
The numeric values are stored in vector V
Type takes value "p" is used to draw only points, "l" is used to
draw just lines, and "o" is used to draw both points and lines.
The x axis is labeled as xlab.
The y axis label is ylab.
The main is the chart's title.
The col is used to color both the points and the lines.
30. Example- 1
We can create a simple line chart using two parameters the
input vector and the type parameter as “o".
v <- c(10,15,22,32)
plot (v,type = “o”)
31. Example - 2
Create using other parameters
v <- c(10,15,11,17,28)
plot (v, main = “Line Graph”, xlab = “Months”, ylab =
“Expenditure”, type = “o”, col = “RED”)
32. Example - 3
Using lines()function, More than one line can be
drawn on the same chart
v <- c(7,12,28,3,41)
t <- c(14,7,6,19,3)
plot(v,type = "o",col = “blue", xlab
= "Months", ylab = “Expenditure",
main = “Expenditure chart")
lines(t, type = "o", col = “yellow")