How do I add PValues to corrplot

조회 수: 11 (최근 30일)
Annabel Macfarlane
Annabel Macfarlane 2020년 4월 21일
댓글: Tommy 2020년 4월 21일
I have created a 17X17 plot of variables using [R, PValue] = corrplot(table);
This returns pretty much exactly the correlation plot i would like as well as a seperate workspace variable table for the Pvalues - all the informaiton i need.
I would like to be able to mark which of the correlations on the plot are significant from the pvalues calculated, so essentially merging/marking the significant vlaues together.
I am a beginner with MATLAB so there's probably a super easy way to do this but i just don't know how to code it?
Any help would be greatly appreciated!
  댓글 수: 2
Annabel Macfarlane
Annabel Macfarlane 2020년 4월 21일
That's exactly it! thank you so much!
Tommy
Tommy 2020년 4월 21일
Fantastic! Happy to help!

댓글을 달려면 로그인하십시오.

채택된 답변

Tommy
Tommy 2020년 4월 21일
If you call
corrplot(table, 'testR', 'on')
then significant correlation coefficients will be shown in red. You can specify the alpha used for testing significance with
corrplot(table, 'testR', 'on', 'alpha', 0.1)
if you don't want to use the default of 0.05.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by