R - corrplot correlation matrix division -


here make example 12x12 correlation matrix:

df <- data.frame(x1=rnorm(20),x2=rnorm(20),x3=rnorm(20),x4=rnorm(20),x5=rnorm(20),x6=rnorm(20),x7=rnorm(20),x8=rnorm(20),x9=rnorm(20),x10=rnorm(20),x11=rnorm(20),x12=rnorm(20)) cormatx <- cor(df) corrplot(cormatx, method="color") 

i wondering how 1 output divided in 4 separate 6x6 matrixes? here image of how output should divided. hope makes sense. enter image description here

like this?

par(mfrow = c(2,2)) corrplot(cormatx[1:6,1:6], method="color")   corrplot(cormatx[1:6,7:12], method="color")   corrplot(cormatx[7:12,1:6], method="color")   corrplot(cormatx[7:12,7:12], method="color")   

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -