Polygonal Plot

버전 1.1 (4.04 KB) 작성자: Víctor Martínez-Cagigal
Polygonal (radar) plot with mean and standard deviation (or error) values
다운로드 수: 480
업데이트 날짜: 2020/1/29

라이선스 보기

Function polygonplot plots a kind of radial plot whose shape is a N-polygon, depending on the size of the data. It have also provide users the functionality of plotting a shaded error area if the dimension of the data is highly enough.
Input parameters:
- data: Data matrix.
* Mean case: [N x nlines], with N corresponding to the number of points of each line (number of polygon sides) and nlines corresponding to the number of lines to plot.
* Error bar case: [N x nlines x M], with M corresponding to the number of observations. Use NaN to ignore the value, in case that lines have different number of observation among themselves.
- opt_axes: (Optional) Struct with the axes options.
* opt_axes.Ticks: Vector that contains the axis ticks.
* opt_axes.Background: Background color of the tick labels.
* opt_axes.Labels: {1 x N} cell-vector with the axes labels
- opt_lines:(Optional) Struct with the lines options.
* opt_lines.LineWidth: Width of the means.
* opt_lines.LineStyle: Line style of the means.
* opt_lines.Marker: Marker of the means.
* opt_lines.Color: [nlines x 3] matrix with RGB colors.
* opt_lines.Labels: Boolean. If true, text labels of each point are plotted.
* opt_lines.Legend: {1 x nlines} cell-matrix with the legend of each line.
- opt_area: (Optional) Struct with the shaded area options.
* opt_area.err: Type of error to plot:
if 'std', one standard deviation;
if 'sem', standard error mean;
if 'var', one variance;
if 'c95', 95 confidence interval.
* opt_area.FaceAlpha: Alpha transparency constant.
* opt_area.Color: [nlines x 3] matrix with RGB colors.
Example of use:
d_ex = [2 3; 1 0; 0.1 3; -1 7; -0.2 0.9];
data = cat(3,d_ex-0.5,d_ex,d_ex+0.7);

인용 양식

Víctor Martínez-Cagigal (2024). Polygonal Plot (https://www.mathworks.com/matlabcentral/fileexchange/62200-polygonal-plot), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
Help CenterMATLAB Answers에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!


버전 게시됨 릴리스 정보

NaN values are allowed.

Solved an issue that filled all the plot if the error is null.