Beeswarm boxplot (scatterplot for categorical data) in MATLAB

风格不统一 提交于 2019-12-04 18:15:31

There is a function on the file exchange called plotSpread that can do these plots:

plotSpread({rand(100,1),randn(100,1)})

       data = [randn(50,1);randn(50,1)+3.5]*[1 1];
       catIdx = [ones(50,1);zeros(50,1);randi([0,1],[100,1])];
       plotSpread(data,'categoryIdx',catIdx,...
            'categoryMarkers',{'o','+'},'categoryColors',{'r','b'})

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!