SlideShare a Scribd company logo
Polar Plots with R – plotrix package



Examples of polar plots using plotrix package:

>   #IMPORT plotrix LIBRARY
>   library(plotrix)
>
>   # 24 CLOCK PLOT#
>   set.seed(1122)
>   d1 <- sample(1:100,24)
>   clock24.plot(d1,0:23,show.grid=FALSE,labels=0:23,
+                line.col="green",lwd=3, main="24 Clock plot", mar=c(2,2,4,2))
> #12 CLOCK PLOT
> set.seed(984)
> d2 <- sample(1:100, 12)
> radial.plot(d2,labels=12:1,rp.type="p",
+             main="12 Clock
plot",line.col=2,show.grid=FALSE,lwd=3,start=pi/2,clockwise=FALSE,
+             radial.lim=c(0,100), mar=c(2,2,4,2),show.radial.grid=FALSE)
>   #360 DEGREE PLOT#
>   set.seed(2211984)
>   d3 <- sample(1:100,36)
>   polar.plot(d2,seq(0,350,by=10),main="360 degree plot",mar=c(2,2,4,2),
+              lwd=3,line.col=4, start=90, rp.type="p",
+              clockwise=TRUE,show.grid.labels=FALSE)

More Related Content

What's hot

Vector processing example
Vector processing exampleVector processing example
Vector processing example
AhmedShimelsMuhe
 
4.5 sec and csc worked 3rd
4.5   sec and csc worked 3rd4.5   sec and csc worked 3rd
4.5 sec and csc worked 3rd
Jonna Ramsey
 
4.5 tan and cot.ppt worked
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
Jonna Ramsey
 
Assignment 01 (1)
Assignment 01 (1)Assignment 01 (1)
Assignment 01 (1)
Muhammad Anees Hanif
 
Sqlite
SqliteSqlite
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
Vanishree Arun
 
04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers
Roman Brovko
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
Koshy Geoji
 
Mate ejercicios de factorización por binomio - 2º
Mate   ejercicios de factorización por binomio - 2ºMate   ejercicios de factorización por binomio - 2º
Mate ejercicios de factorización por binomio - 2º
brisagaela29
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog code
Bharti Airtel Ltd.
 
Fuvest 2020 - aberta
Fuvest 2020 - abertaFuvest 2020 - aberta
Fuvest 2020 - aberta
KalculosOnline
 
Pylon analysis of LiDAR data with Laserdata LiS
Pylon analysis of LiDAR data with Laserdata LiSPylon analysis of LiDAR data with Laserdata LiS
Pylon analysis of LiDAR data with Laserdata LiS
Frederic Petrini-Monteferri
 
JCalc:Calculations in java with open source API
JCalc:Calculations in java with open source APIJCalc:Calculations in java with open source API
JCalc:Calculations in java with open source API
Davor Sauer
 
C program to add two numbers
C program to add two numbers C program to add two numbers
C program to add two numbers
mohdshanu
 
C workshop day 6
C workshop day 6C workshop day 6
C workshop day 6
Mayank Agrawal
 
情報学特論#01
情報学特論#01情報学特論#01
情報学特論#01Kenta Murata
 
Monte-carlo sim pricing EU call
Monte-carlo sim pricing EU callMonte-carlo sim pricing EU call
Monte-carlo sim pricing EU callTianqi Huang, CFA
 
Experement no 6
Experement no 6Experement no 6
Experement no 6
Smita Batti
 

What's hot (19)

Vector processing example
Vector processing exampleVector processing example
Vector processing example
 
4.5 sec and csc worked 3rd
4.5   sec and csc worked 3rd4.5   sec and csc worked 3rd
4.5 sec and csc worked 3rd
 
4.5 tan and cot.ppt worked
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
 
Assignment 01 (1)
Assignment 01 (1)Assignment 01 (1)
Assignment 01 (1)
 
Cristina
CristinaCristina
Cristina
 
Sqlite
SqliteSqlite
Sqlite
 
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
 
04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers04 - Scala. Type of natural numbers
04 - Scala. Type of natural numbers
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
 
Mate ejercicios de factorización por binomio - 2º
Mate   ejercicios de factorización por binomio - 2ºMate   ejercicios de factorización por binomio - 2º
Mate ejercicios de factorización por binomio - 2º
 
To designing counters using verilog code
To designing counters using verilog codeTo designing counters using verilog code
To designing counters using verilog code
 
Fuvest 2020 - aberta
Fuvest 2020 - abertaFuvest 2020 - aberta
Fuvest 2020 - aberta
 
Pylon analysis of LiDAR data with Laserdata LiS
Pylon analysis of LiDAR data with Laserdata LiSPylon analysis of LiDAR data with Laserdata LiS
Pylon analysis of LiDAR data with Laserdata LiS
 
JCalc:Calculations in java with open source API
JCalc:Calculations in java with open source APIJCalc:Calculations in java with open source API
JCalc:Calculations in java with open source API
 
C program to add two numbers
C program to add two numbers C program to add two numbers
C program to add two numbers
 
C workshop day 6
C workshop day 6C workshop day 6
C workshop day 6
 
情報学特論#01
情報学特論#01情報学特論#01
情報学特論#01
 
Monte-carlo sim pricing EU call
Monte-carlo sim pricing EU callMonte-carlo sim pricing EU call
Monte-carlo sim pricing EU call
 
Experement no 6
Experement no 6Experement no 6
Experement no 6
 

Viewers also liked

Debt Collection Report - using R in Finance
Debt Collection Report  - using R in FinanceDebt Collection Report  - using R in Finance
Debt Collection Report - using R in Finance
Andrija Djurovic
 
R and Access 2007
R and Access 2007R and Access 2007
R and Access 2007
Andrija Djurovic
 
Visualization of contingency table in R - vcd package
Visualization of contingency table in R - vcd packageVisualization of contingency table in R - vcd package
Visualization of contingency table in R - vcd package
Andrija Djurovic
 
Roll Rate Model - Using R in Finance
Roll Rate Model - Using R in FinanceRoll Rate Model - Using R in Finance
Roll Rate Model - Using R in Finance
Andrija Djurovic
 
Seguimiento del modelo interno de riesgo
Seguimiento del modelo interno de riesgoSeguimiento del modelo interno de riesgo
Seguimiento del modelo interno de riesgo
AIS
 
Excel/R
Excel/RExcel/R
Data Exploration, Validation and Sanitization
Data Exploration, Validation and SanitizationData Exploration, Validation and Sanitization
Data Exploration, Validation and SanitizationVenkata Reddy Konasani
 
Model building in credit card and loan approval
Model building in credit card and loan approval Model building in credit card and loan approval
Model building in credit card and loan approval Venkata Reddy Konasani
 
Decision tree
Decision treeDecision tree
Decision tree
Venkata Reddy Konasani
 
Credit Risk Model Building Steps
Credit Risk Model Building StepsCredit Risk Model Building Steps
Credit Risk Model Building Steps
Venkata Reddy Konasani
 

Viewers also liked (13)

Debt Collection Report - using R in Finance
Debt Collection Report  - using R in FinanceDebt Collection Report  - using R in Finance
Debt Collection Report - using R in Finance
 
R and Access 2007
R and Access 2007R and Access 2007
R and Access 2007
 
Visualization of contingency table in R - vcd package
Visualization of contingency table in R - vcd packageVisualization of contingency table in R - vcd package
Visualization of contingency table in R - vcd package
 
Data aggregation in R
Data aggregation in RData aggregation in R
Data aggregation in R
 
R-Excel Integration
R-Excel IntegrationR-Excel Integration
R-Excel Integration
 
Roll Rate Model - Using R in Finance
Roll Rate Model - Using R in FinanceRoll Rate Model - Using R in Finance
Roll Rate Model - Using R in Finance
 
Seguimiento del modelo interno de riesgo
Seguimiento del modelo interno de riesgoSeguimiento del modelo interno de riesgo
Seguimiento del modelo interno de riesgo
 
Excel/R
Excel/RExcel/R
Excel/R
 
Testing of hypothesis case study
Testing of hypothesis case study Testing of hypothesis case study
Testing of hypothesis case study
 
Data Exploration, Validation and Sanitization
Data Exploration, Validation and SanitizationData Exploration, Validation and Sanitization
Data Exploration, Validation and Sanitization
 
Model building in credit card and loan approval
Model building in credit card and loan approval Model building in credit card and loan approval
Model building in credit card and loan approval
 
Decision tree
Decision treeDecision tree
Decision tree
 
Credit Risk Model Building Steps
Credit Risk Model Building StepsCredit Risk Model Building Steps
Credit Risk Model Building Steps
 

Similar to Polar plots with R

ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ssuser702532
 
Advanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIAdvanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part II
Dr. Volkan OBAN
 
Surface3d in R and rgl package.
Surface3d in R and rgl package.Surface3d in R and rgl package.
Surface3d in R and rgl package.
Dr. Volkan OBAN
 
DSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxDSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docx
MUMAR57
 
CLUSTERGRAM
CLUSTERGRAMCLUSTERGRAM
CLUSTERGRAM
Dr. Volkan OBAN
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
Janani S
 
Cryptography and Network Security chapter 4.ppt
Cryptography and Network Security chapter 4.pptCryptography and Network Security chapter 4.ppt
Cryptography and Network Security chapter 4.ppt
the9amit
 
3.pdf
3.pdf3.pdf
Ejercicios prueba de algebra de la UTN- widmar aguilar
Ejercicios prueba de algebra de la UTN-  widmar aguilarEjercicios prueba de algebra de la UTN-  widmar aguilar
Ejercicios prueba de algebra de la UTN- widmar aguilar
Widmar Aguilar Gonzalez
 
CH04.ppt
CH04.pptCH04.ppt
Plot3D Package and Example in R.-Data visualizat,on
Plot3D Package and Example in R.-Data visualizat,onPlot3D Package and Example in R.-Data visualizat,on
Plot3D Package and Example in R.-Data visualizat,on
Dr. Volkan OBAN
 
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
Dr. Volkan OBAN
 
Time Series Analysis and Mining with R
Time Series Analysis and Mining with RTime Series Analysis and Mining with R
Time Series Analysis and Mining with R
Yanchang Zhao
 
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
Gautham Rajesh
 
Cg my own programs
Cg my own programsCg my own programs
Cg my own programsAmit Kapoor
 
Root Locus Method - Control System - Bsc Engineering
Root Locus Method - Control System - Bsc EngineeringRoot Locus Method - Control System - Bsc Engineering
Root Locus Method - Control System - Bsc Engineering
dexik15916
 
Formulario Geometria Analitica
Formulario Geometria AnaliticaFormulario Geometria Analitica
Formulario Geometria Analitica
Antonio Guasco
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Henrique Covatti
 
Algorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical FileAlgorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical File
KushagraChadha1
 

Similar to Polar plots with R (20)

ADVANCED ALGORITHMS-UNIT-3-Final.ppt
ADVANCED   ALGORITHMS-UNIT-3-Final.pptADVANCED   ALGORITHMS-UNIT-3-Final.ppt
ADVANCED ALGORITHMS-UNIT-3-Final.ppt
 
Advanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part IIAdvanced Data Visualization Examples with R-Part II
Advanced Data Visualization Examples with R-Part II
 
Surface3d in R and rgl package.
Surface3d in R and rgl package.Surface3d in R and rgl package.
Surface3d in R and rgl package.
 
DSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxDSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docx
 
CLUSTERGRAM
CLUSTERGRAMCLUSTERGRAM
CLUSTERGRAM
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
Cryptography and Network Security chapter 4.ppt
Cryptography and Network Security chapter 4.pptCryptography and Network Security chapter 4.ppt
Cryptography and Network Security chapter 4.ppt
 
3.pdf
3.pdf3.pdf
3.pdf
 
Ejercicios prueba de algebra de la UTN- widmar aguilar
Ejercicios prueba de algebra de la UTN-  widmar aguilarEjercicios prueba de algebra de la UTN-  widmar aguilar
Ejercicios prueba de algebra de la UTN- widmar aguilar
 
CH04.ppt
CH04.pptCH04.ppt
CH04.ppt
 
Plot3D Package and Example in R.-Data visualizat,on
Plot3D Package and Example in R.-Data visualizat,onPlot3D Package and Example in R.-Data visualizat,on
Plot3D Package and Example in R.-Data visualizat,on
 
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
Plot3D package in R-package-for-3d-and-4d-graph-Data visualization.
 
Time Series Analysis and Mining with R
Time Series Analysis and Mining with RTime Series Analysis and Mining with R
Time Series Analysis and Mining with R
 
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
CBSE XII MATHS SAMPLE PAPER BY KENDRIYA VIDYALAYA
 
Cg my own programs
Cg my own programsCg my own programs
Cg my own programs
 
R meets Hadoop
R meets HadoopR meets Hadoop
R meets Hadoop
 
Root Locus Method - Control System - Bsc Engineering
Root Locus Method - Control System - Bsc EngineeringRoot Locus Method - Control System - Bsc Engineering
Root Locus Method - Control System - Bsc Engineering
 
Formulario Geometria Analitica
Formulario Geometria AnaliticaFormulario Geometria Analitica
Formulario Geometria Analitica
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
 
Algorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical FileAlgorithm Design and Analysis - Practical File
Algorithm Design and Analysis - Practical File
 

Polar plots with R

  • 1. Polar Plots with R – plotrix package Examples of polar plots using plotrix package: > #IMPORT plotrix LIBRARY > library(plotrix) > > # 24 CLOCK PLOT# > set.seed(1122) > d1 <- sample(1:100,24) > clock24.plot(d1,0:23,show.grid=FALSE,labels=0:23, + line.col="green",lwd=3, main="24 Clock plot", mar=c(2,2,4,2))
  • 2. > #12 CLOCK PLOT > set.seed(984) > d2 <- sample(1:100, 12) > radial.plot(d2,labels=12:1,rp.type="p", + main="12 Clock plot",line.col=2,show.grid=FALSE,lwd=3,start=pi/2,clockwise=FALSE, + radial.lim=c(0,100), mar=c(2,2,4,2),show.radial.grid=FALSE)
  • 3. > #360 DEGREE PLOT# > set.seed(2211984) > d3 <- sample(1:100,36) > polar.plot(d2,seq(0,350,by=10),main="360 degree plot",mar=c(2,2,4,2), + lwd=3,line.col=4, start=90, rp.type="p", + clockwise=TRUE,show.grid.labels=FALSE)