Skip to content

Commit

Permalink
Add log to DDplot AGAIN and fix type in scatterplotmatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
tcrasset committed Dec 5, 2018
1 parent 7f6f58f commit 9852180
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions analysis.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#[setwd("~/Documents/Master1_DataScience/1er QUADRI/High_Dimensional_Data_Analysis/Breast-cancer-data-analysis")
setwd("~/Documents/INGE/MASTER/1ère\ MASTER/1er\ QUADRI/HDDA/Projects/Breast-cancer-data-analysis/")
setwd("~/Documents/Master1_DataScience/1er QUADRI/High_Dimensional_Data_Analysis/Breast-cancer-data-analysis")
#setwd("~/Documents/INGE/MASTER/1ère\ MASTER/1er\ QUADRI/HDDA/Projects/Breast-cancer-data-analysis/")

# Data loading
data <- read.table("data.csv", header=TRUE, sep=',')
Expand Down Expand Up @@ -31,8 +31,7 @@ par(mfrow=c(1,1))

# Matrix of scatterplots of the quantitative features
my_cols <- c("#00AFBB", "#FC4E07")
pairs(data[,1:9],pch = 16, cex = 0.9,
- col = my_cols[data$Classification])
pairs(data[,1:9], pch = 16, cex = 0.9,col = my_cols[data$Classification])

# Graphics of the correlation matrix
c <- cor(data[,1:9])
Expand All @@ -58,9 +57,10 @@ plot(log(robust), type = "h")
abline(h=log(qchisq(0.975,9)), col="red")

#DDplot (log because of scale)
par(mfrow=c(1,1))
plot(maha,log(robust))
abline(h=qchisq(0.975,9), col="red")
abline(v=qchisq(0.975,9), col="red")
abline(h=log(qchisq(0.975,9)), col="red")

#Robust correlation matrix
#corrplot(robS$cor)
Expand Down

0 comments on commit 9852180

Please sign in to comment.