r - How to hide selected correlations for corrplot? -


Trying to see a correlation matrix using corrplot , I'm new to coding and r. But do not want to show all relationship values ​​I want to hide / cancel a portion of selected columns and rows so that an inverted 'L' of values ​​can be shown. For example, see an edited code of the example here:

Enter image details here

Using these columns as indexed, for example

  M & lt;  cor (mtcars [, - C (1, 3, 6)]]   

Where we call columns 1, 3, 6 (variable MPG, Disp, cob). In other ways, it will be specified which column should be evaluated

  mtcars [, c (2: 4, 7)]   

accounts Let's take you to columns 2, 3, 4 and 7. To get acquainted with coding conventions, see some R tutorials for beginners.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -