Scatter distribution figure

버전 1.0.0 (2.96 KB) 작성자: Eline Zwijgers
Function to create a scatter plot showing the individual data points and the distributions on the X and Y-axis.
다운로드 수: 125
업데이트 날짜: 2022/4/29

라이선스 보기

Function to create a scatter plot showing the individual data points and the distributions on the X and Y-axis.
Choose between a kernel (default) or gaussian distribution. The figure contains three subplots: Fig.scat, Fig.distx, and Fig.disty.
Options such as personalized colors, marker size, trendline, etc. are included.
% Example code with random data
datax = [randn(1,50) randn(1,50)+3 1.5*(randn(1,50)+1.5)];
datay = [0.5*datax(1:50)+2+0.4*randn(1,50) 0.7*datax(51:100)+1.8+1*randn(1,50) 0.4*datax(101:150)+2.4+0.6*randn(1,50)];
cats = [cellstr(repmat('Group A',50,1)); cellstr(repmat('Group B',50,1)); cellstr(repmat('Group C',50,1))];
figure
Fig = scatter_distribution_figure(datax, datay, cats, 'YLabel', 'Y label','XLabel','X label');
set(Fig.scat,'FontSize',23,'linewidth',2,'box','on')

인용 양식

Eline Zwijgers (2024). Scatter distribution figure (https://www.mathworks.com/matlabcentral/fileexchange/110850-scatter-distribution-figure), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0