SlideShare a Scribd company logo
Interactive and 3D
Scatterplot in R
Mr. S. B. Adnaik (Ph.D., Statistics)
Interactive plots
# Create some linked plots
library(iplots)
attach(iris)
ihist(Sepal.Length) # histogram
ibar(Species) # barchart
iplot(Sepal.Length, Sepal.Width) # scatter plot
ibox(iris[,1:4]) # boxplots
Note: Click on any graph and see how they are related to each other.
Mr. S. B. Adnaik (Ph.D., Statistics)
Interactive plots...
Mr. S. B. Adnaik (Ph.D., Statistics)
Interactive plots...
# Interacting with a scatterplot
attach(iris)
plot(Sepal.Length, Sepal.Width) # scatterplot
identify(Sepal.Length, Sepal.Width, labels=row.names(iris))
# identify points
Note: Click on points to
Get its location (row no.)
Click ‘stop’ to exit.
Mr. S. B. Adnaik (Ph.D., Statistics)
Scatterplot 3D
# 3D Scatterplot
library(scatterplot3d)
attach(iris)
scatterplot3d(iris[,1:3], main="3D Scatterplot")
Mr. S. B. Adnaik (Ph.D., Statistics)
Scatterplot 3D...
# 3D Scatterplot with Coloring and Vertical Drop Lines
library(scatterplot3d)
attach(iris)
scatterplot3d(iris[,1:3], pch=16, highlight.3d=TRUE,
type="h", main="3D Scatterplot")
Mr. S. B. Adnaik (Ph.D., Statistics)
Scatterplot 3D...
# 3D Scatterplot with Coloring and Vertical Lines and Regression Plane
library(scatterplot3d)
attach(iris)
s3d <-scatterplot3d(iris[,1:3], pch=16, highlight.3d=TRUE,
type="h", main="3D Scatterplot")
fit <- lm(Sepal.Width~Petal.Length+Petal.Width)
s3d$plane3d(fit)
Mr. S. B. Adnaik (Ph.D., Statistics)
Mr. S. B. Adnaik (Ph.D., Statistics)

More Related Content

PPTX
PPTX
PDF
New Technology Challenges in Military/Space Microcircuits
PDF
The State of Spam
PPT
Intro to Send Out Cards
PDF
Imaps presentation-high-temp-electronics-11-19-13
ODP
Memorias
New Technology Challenges in Military/Space Microcircuits
The State of Spam
Intro to Send Out Cards
Imaps presentation-high-temp-electronics-11-19-13
Memorias

Viewers also liked (8)

PPTX
MPEG 4 VIDEO
PPTX
Interactive and 3 d scatterplot
PPTX
O fío de Ariadna
DOCX
O Londres de Dickens
ODP
Ledicia Costas no Colmeiro
KEY
Observation lab
PPTX
Ibread
PDF
Gi Micro Electronics Data Catalog 1978 Index
MPEG 4 VIDEO
Interactive and 3 d scatterplot
O fío de Ariadna
O Londres de Dickens
Ledicia Costas no Colmeiro
Observation lab
Ibread
Gi Micro Electronics Data Catalog 1978 Index
Ad

Recently uploaded (20)

PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
Fluorescence-microscope_Botany_detailed content
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Introduction to machine learning and Linear Models
PPTX
SAP 2 completion done . PRESENTATION.pptx
PDF
Introduction to the R Programming Language
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
STUDY DESIGN details- Lt Col Maksud (21).pptx
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
Database Infoormation System (DBIS).pptx
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
oil_refinery_comprehensive_20250804084928 (1).pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Fluorescence-microscope_Botany_detailed content
[EN] Industrial Machine Downtime Prediction
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Introduction to machine learning and Linear Models
SAP 2 completion done . PRESENTATION.pptx
Introduction to the R Programming Language
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Business Ppt On Nestle.pptx huunnnhhgfvu
STUDY DESIGN details- Lt Col Maksud (21).pptx
Qualitative Qantitative and Mixed Methods.pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Database Infoormation System (DBIS).pptx
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
Ad

Interactive and 3 d scatterplot

  • 1. Interactive and 3D Scatterplot in R Mr. S. B. Adnaik (Ph.D., Statistics)
  • 2. Interactive plots # Create some linked plots library(iplots) attach(iris) ihist(Sepal.Length) # histogram ibar(Species) # barchart iplot(Sepal.Length, Sepal.Width) # scatter plot ibox(iris[,1:4]) # boxplots Note: Click on any graph and see how they are related to each other. Mr. S. B. Adnaik (Ph.D., Statistics)
  • 3. Interactive plots... Mr. S. B. Adnaik (Ph.D., Statistics)
  • 4. Interactive plots... # Interacting with a scatterplot attach(iris) plot(Sepal.Length, Sepal.Width) # scatterplot identify(Sepal.Length, Sepal.Width, labels=row.names(iris)) # identify points Note: Click on points to Get its location (row no.) Click ‘stop’ to exit. Mr. S. B. Adnaik (Ph.D., Statistics)
  • 5. Scatterplot 3D # 3D Scatterplot library(scatterplot3d) attach(iris) scatterplot3d(iris[,1:3], main="3D Scatterplot") Mr. S. B. Adnaik (Ph.D., Statistics)
  • 6. Scatterplot 3D... # 3D Scatterplot with Coloring and Vertical Drop Lines library(scatterplot3d) attach(iris) scatterplot3d(iris[,1:3], pch=16, highlight.3d=TRUE, type="h", main="3D Scatterplot") Mr. S. B. Adnaik (Ph.D., Statistics)
  • 7. Scatterplot 3D... # 3D Scatterplot with Coloring and Vertical Lines and Regression Plane library(scatterplot3d) attach(iris) s3d <-scatterplot3d(iris[,1:3], pch=16, highlight.3d=TRUE, type="h", main="3D Scatterplot") fit <- lm(Sepal.Width~Petal.Length+Petal.Width) s3d$plane3d(fit) Mr. S. B. Adnaik (Ph.D., Statistics)
  • 8. Mr. S. B. Adnaik (Ph.D., Statistics)