File Exchange

image thumbnail

Plot a 'grouped' univariate histogram

version 1.0 (18.3 KB) by

(Subsample histograms, stacked)

4 Downloads

Updated

View License

Function HISTG ('grouped histogram') adapts Matlab's HIST to cases where data vector includes values from several observed groups, and lets one color-code group membership on the overall histogram. Separate histograms are constructed for all x-groups (each identified by a distinct finite value of a class-assignment variable c), and vertically stacked. HISTG offers display options (x-percentile cut-offs, absolute axis limits, bin size, marker line) implemented in HISTF, linked to below. (Note: when range of x is limited with [pmin, pmax], no adjustment for truncation is made. The cut-offs are meant to exclude 'extreme', low-mass values).

Comments and Ratings (3)

Hemingway

Would have liked the option to include a legend. But otherwise very good. Thanks.

Hemingway

Adam A

Very useful. Would be nice if the group vector was allowed to be a cell, like gscatter etc.

Updates

1.0

BSD

MATLAB Release
MATLAB 7.2 (R2006a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

histg/

histg/html/