groupedSpacedBoxcha​rt

버전 0.1.0 (246 KB) 작성자: Austin M. Weber
Boxcharts with space between groups (MATLAB function).
다운로드 수: 19
업데이트 날짜: 2024/5/23

groupedSpacedBoxchart

Boxcharts with space between groups (MATLAB function).

Purpose

Inspired by Sudhee's question on MATLAB Answers (https://www.mathworks.com/matlabcentral/answers/2120996), the groupedSpacedBoxchart function is a modified version of the base function boxchart. The modified function adds extra space between grouped data in a boxchart visualization, thereby making it easier to distinguish between the groups.

groupedSpacedBoxchart

Documentation

Syntax

  • groupedSpacedBoxchart(dataTable,x,y,groups)

  • groupedSpacedBoxchart(...,varargin)

  • axHandle = groupedSpacedBoxchart(...)

Inputs

  • dataTable - Table containing your original data

  • x - Name of XData variable (ex. 'Month')

  • y - Name of YData variable (ex. 'Temperature')

  • groups - Name of the variable you wish to group the data by (ex. 'Year')

  • varargin - (Optional) name/value pairs compatible with the boxchart() function

Outputs

  • axHandle - Chart axes handle

Examples

 load temperature_data
 plt = groupedSpacedBoxchart(data,'Month','TemperatureF','Year');

 % With optional inputs
 plt2 = groupedSpacedBoxchart(data,'Month','TemperatureF','Year',...
        'BoxWidth',0.5,'MarkerStyle','x','notch','on');
 ylim([20 100]), ylabel('Temperature (\circF)')
 legend(categorical(unique(data.Year)))

인용 양식

Austin M. Weber (2024). groupedSpacedBoxchart (https://github.com/weber1158/groupedSpacedBoxchart/releases/tag/v0.1.0), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2024a
R2020a 이상 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

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

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

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.