干货 | 对数化绘制P值地形图

干货 | 对数化绘制P值地形图

在这里插入图片描述
在这里插入图片描述
Hello,
这里是行上行下,我是箱鼠~
原文链接:https://mp.weixin.qq.com/s/6Z5n36Tb8UlAROOHPQlGww

正常使用topplot绘制P值图是这样的,P值越大,图片越亮。

在这里插入图片描述
但是因为P值本身的原因,P值需要越小越好,这就需要改变绘图的思路,可以对P值求一个log值再求负数,画在地形图上,就对显著的区域一目了然。

在这里插入图片描述
分享绘图代码如下:

% Written By  Yizhou
% Using the code without proper understanding the code and relevant background
% of EEG may lead to confusion, incorrect data analyses,or misinterpretations
% of results.
% The author assumes NO responsibility for inappropriate or incorrect use
% of this code.
% WX:17373158786
plog = -log10(P_ttest);
% 'electrodes' ,'off',是去除电极点,'style' ,'map'是去除等高线
topoplot(plog, EEG.chanlocs,'maplimits',[0 3], 'electrodes' ,'off',   'verbose' ,'off', 'style' ,'map'); 
colorbar('YLim',[0 3], 'YTick',[0,1,2,3],'YTickLabel',{'1','0.1','0.01','0.001'});
title('负性刺激vs中性刺激','fontsize',15); %改变标度为log值

获取更多资料欢迎关注我们哟~
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值