SlideShare a Scribd company logo
1 of 39
Download to read offline
Quantitative
   Data Analysis

Data exploration and graphics
Is global warming real?




               http://chartgraphs.wordpress.com
Russian most extreme summer




                 http://joewheatley.net/russian-grain/
Is the world a fair place?




                 http://www.gapminder.org/world
acpclust.R
More links
http://www.statmethods.net/
http://addictedtor.free.fr/graphiques/
http://socserv.mcmaster.ca/jfox/Misc/Rcmdr/
Plots and charts
Low level functions
graphical parameters: par()
Lattice package
Curves and functions
x<-seq(-2,2,0.01)
y<-x^3-3*x
plot(x,y,type="l")

Or
curve(x^3-3*x, -2, 2)
Histogram
histogram




histogram(~Countries$Population|Countries$Region)
histogram
histogram
histogram(~Population|Region,data=Countries,
 col=2:6,panel=function(x,...,col) {
 panel.histogram(x,...,col=col[packet.number()])
})
Pie chart




data<-read.csv("datapiedata.csv",header=T)
pie(data$amounts,labels=as.character(data$names))
Boxplot/Barplot




             source("boxplot.R")
barplot




Barplot(tapply(Countries$Population,Countries$Region,sum) ,main="Population",col=rainbow(nlevels(Countries$Regi
scatterplots




           source(“scatterplot.R")
Bubble plot




              source("bubble.R")
Time series




              source(“ts.R”)
coplot




         source("ozone.R")
Interaction plot




             source("interaction.R")
Quantitative
Data Analysis

Data preprocessing
Missing values
Remove the cases with unknowns
Fill in the unknown values by exploring the properties of the variable
Fill in the unknown values by exploring the correlations between
variables
Fill in the unknown values by exploring the similarity between cases
Transformations of the response
   and explanatory variables
Linearize the relationship between the response and the explanatory
variables
logy against x for exponential relationships;
logy against logx for power functions;
expy against x for logarithmic relationships;
1/y against 1/x for asymptotic relationships;
logp/1−p againstx for proportion data.
Other transformations are useful for variance stabilization:
 √y to stabilize the variance for count data;
 arcsin(y) to stabilize the variance of percentage data.
Quantitative
Data Analysis

  Data modelling
Exponential functions




                        exp.R
Power functions




                  power.R
Polynomial functions




                   polinomials.R
Inverse polynomial




                     invpol.R
Gamma function




                 gamma.R
Asymptotic functions
Asymptotic functions




                   michaelis.R
Asymptotic functions




                       logistic.R
fitting1.R
fitting2.R
fitting3.R

More Related Content

Viewers also liked (11)

R graphics by Novi Reandy Sasmita
R graphics by Novi Reandy SasmitaR graphics by Novi Reandy Sasmita
R graphics by Novi Reandy Sasmita
 
Graphics with r
Graphics with rGraphics with r
Graphics with r
 
Basic Graphics with R
Basic Graphics with RBasic Graphics with R
Basic Graphics with R
 
Adrenal agonist agents
Adrenal agonist agentsAdrenal agonist agents
Adrenal agonist agents
 
Overview Of Pharmacodynamics 04.15.09
Overview Of Pharmacodynamics 04.15.09Overview Of Pharmacodynamics 04.15.09
Overview Of Pharmacodynamics 04.15.09
 
Antagonist or agonist
Antagonist or agonistAntagonist or agonist
Antagonist or agonist
 
Concepts of agonist and antagonist receptors
Concepts of agonist and antagonist receptorsConcepts of agonist and antagonist receptors
Concepts of agonist and antagonist receptors
 
Serotonin agonist &antagonist
Serotonin agonist &antagonistSerotonin agonist &antagonist
Serotonin agonist &antagonist
 
Advanced R Graphics
Advanced R GraphicsAdvanced R Graphics
Advanced R Graphics
 
R Graphics
R GraphicsR Graphics
R Graphics
 
Pharmacodynamics (Mechanisn of drug action)
Pharmacodynamics (Mechanisn of drug action) Pharmacodynamics (Mechanisn of drug action)
Pharmacodynamics (Mechanisn of drug action)
 

Similar to Data exploration and graphics with R

9.2 lin reg coeff of det
9.2 lin reg coeff of det9.2 lin reg coeff of det
9.2 lin reg coeff of det
leblance
 
14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMS
koolkampus
 

Similar to Data exploration and graphics with R (20)

1. linear model, inference, prediction
1. linear model, inference, prediction1. linear model, inference, prediction
1. linear model, inference, prediction
 
Statistics-Defined.pdf
Statistics-Defined.pdfStatistics-Defined.pdf
Statistics-Defined.pdf
 
Combining Data in Species Distribution Models
Combining Data in Species Distribution ModelsCombining Data in Species Distribution Models
Combining Data in Species Distribution Models
 
9.2 lin reg coeff of det
9.2 lin reg coeff of det9.2 lin reg coeff of det
9.2 lin reg coeff of det
 
R training5
R training5R training5
R training5
 
OTTER 2017-12-03
OTTER 2017-12-03OTTER 2017-12-03
OTTER 2017-12-03
 
BasicGraphsWithR
BasicGraphsWithRBasicGraphsWithR
BasicGraphsWithR
 
Linear algebra havard university
Linear algebra havard universityLinear algebra havard university
Linear algebra havard university
 
14. Query Optimization in DBMS
14. Query Optimization in DBMS14. Query Optimization in DBMS
14. Query Optimization in DBMS
 
10. functions
10. functions10. functions
10. functions
 
Notes Ch8
Notes Ch8Notes Ch8
Notes Ch8
 
Logical Detection of Invalid SameAs Statements in RDF Data
Logical Detection of Invalid SameAs Statements in RDF DataLogical Detection of Invalid SameAs Statements in RDF Data
Logical Detection of Invalid SameAs Statements in RDF Data
 
Abstract machines for great good
Abstract machines for great goodAbstract machines for great good
Abstract machines for great good
 
2 data structure in R
2 data structure in R2 data structure in R
2 data structure in R
 
Hmm and neural networks
Hmm and neural networksHmm and neural networks
Hmm and neural networks
 
Stats chapter 3
Stats chapter 3Stats chapter 3
Stats chapter 3
 
Logarithms in mathematics
Logarithms in mathematics Logarithms in mathematics
Logarithms in mathematics
 
Interpolation
InterpolationInterpolation
Interpolation
 
Multinomial Model Simulations
Multinomial Model SimulationsMultinomial Model Simulations
Multinomial Model Simulations
 
Simple Linear Regression with R
Simple Linear Regression with RSimple Linear Regression with R
Simple Linear Regression with R
 

More from Alberto Labarga

More from Alberto Labarga (20)

El Salto Communities - EditorsLab 2017
El Salto Communities - EditorsLab 2017El Salto Communities - EditorsLab 2017
El Salto Communities - EditorsLab 2017
 
Shokesu - Premio Nobel de Literatura a Bob Dylan
Shokesu - Premio Nobel de Literatura a Bob DylanShokesu - Premio Nobel de Literatura a Bob Dylan
Shokesu - Premio Nobel de Literatura a Bob Dylan
 
Genome visualization challenges
Genome visualization challengesGenome visualization challenges
Genome visualization challenges
 
SocialLearning: descubriendo contenidos educativos de manera colaborativa
SocialLearning: descubriendo contenidos educativos de manera colaborativaSocialLearning: descubriendo contenidos educativos de manera colaborativa
SocialLearning: descubriendo contenidos educativos de manera colaborativa
 
Hacksanfermin 2015 :: Dropcoin Street
Hacksanfermin 2015 :: Dropcoin StreetHacksanfermin 2015 :: Dropcoin Street
Hacksanfermin 2015 :: Dropcoin Street
 
hacksanfermin 2015 :: Parking inteligente
hacksanfermin 2015 :: Parking inteligentehacksanfermin 2015 :: Parking inteligente
hacksanfermin 2015 :: Parking inteligente
 
jpd5 big data
jpd5 big datajpd5 big data
jpd5 big data
 
Vidas Contadas :: Visualizar 2015
Vidas Contadas :: Visualizar 2015Vidas Contadas :: Visualizar 2015
Vidas Contadas :: Visualizar 2015
 
Periodismo de datos y visualización de datos abiertos #siglibre9
Periodismo de datos y visualización de datos abiertos #siglibre9Periodismo de datos y visualización de datos abiertos #siglibre9
Periodismo de datos y visualización de datos abiertos #siglibre9
 
myHealthHackmedicine
myHealthHackmedicinemyHealthHackmedicine
myHealthHackmedicine
 
Big Data y Salud
Big Data y SaludBig Data y Salud
Big Data y Salud
 
Arduino: Control de motores
Arduino: Control de motoresArduino: Control de motores
Arduino: Control de motores
 
Entrada/salida analógica con Arduino
Entrada/salida analógica con ArduinoEntrada/salida analógica con Arduino
Entrada/salida analógica con Arduino
 
Práctica con Arduino: Simon Dice
Práctica con Arduino: Simon DicePráctica con Arduino: Simon Dice
Práctica con Arduino: Simon Dice
 
Entrada/Salida digital con Arduino
Entrada/Salida digital con ArduinoEntrada/Salida digital con Arduino
Entrada/Salida digital con Arduino
 
Presentación Laboratorio de Fabricación Digital UPNA 2014
Presentación Laboratorio de Fabricación Digital UPNA 2014Presentación Laboratorio de Fabricación Digital UPNA 2014
Presentación Laboratorio de Fabricación Digital UPNA 2014
 
Conceptos de electrónica - Laboratorio de Fabricación Digital UPNA 2014
Conceptos de electrónica - Laboratorio de Fabricación Digital UPNA 2014Conceptos de electrónica - Laboratorio de Fabricación Digital UPNA 2014
Conceptos de electrónica - Laboratorio de Fabricación Digital UPNA 2014
 
Introducción a la plataforma Arduino - Laboratorio de Fabricación Digital UPN...
Introducción a la plataforma Arduino - Laboratorio de Fabricación Digital UPN...Introducción a la plataforma Arduino - Laboratorio de Fabricación Digital UPN...
Introducción a la plataforma Arduino - Laboratorio de Fabricación Digital UPN...
 
Introducción a la impresión 3D
Introducción a la impresión 3DIntroducción a la impresión 3D
Introducción a la impresión 3D
 
Vidas Contadas
Vidas ContadasVidas Contadas
Vidas Contadas
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Data exploration and graphics with R