Code covered by the BSD License  

Highlights from
Labelled histogram

5.0

5.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 1.91 KB File ID: #20016
image thumbnail

Labelled histogram

by Pau Micó

 

22 May 2008 (Updated 10 Jun 2008)

Plots the histogram for the observations, but grouped by labels.

| Watch this File

File Information
Description

Imagine that you have a set of observations that have been properly labelled. It should be interesting not only to analyze the data pdf but also to study the weigth of each class (observations' labels) to each one of the histogram bins. In this way I have developed a version of HIST, that is called LHIST. This new function plots the histogram for the observations grouping them in M bins. In addition, it accounts for the different elements that are present in each bin grouping them by LABELS.

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
29 Dec 2008 Tom

in the example , gsamp does not exist.

30 Jun 2010 Graham Bortz

I would like to express my sincere gratitude for this function. Seeing that you have provided me with such value , can you show me how to use this function ( lhist) within the gplotmatrix function to do the scatter plots with the classes ( labels) of different colors , and integrate your lhist function on the diagonals. This would therefore give a class based plotmatrix , something which should be included in the examples on the Matlab documentation. Authors have presented this type of visualisation in Mathematica.

I keenly await your response

Thank You
Graham Bortz
(bortz_g@mtn.co.za)

Please login to add a comment or rating.
Updates
27 May 2008

Bug fixed

10 Jun 2008

Bug fixed

Tag Activity for this File
Tag Applied By Date/Time
statistics Pau Micó 22 Oct 2008 10:02:53
probability Pau Micó 22 Oct 2008 10:02:53
histogram Pau Micó 22 Oct 2008 10:02:53
bar plot Pau Micó 22 Oct 2008 10:02:53
data Pau Micó 22 Oct 2008 10:02:53
observations Pau Micó 22 Oct 2008 10:02:53
analyza Pau Micó 22 Oct 2008 10:02:53
labelled Pau Micó 22 Oct 2008 10:02:53
analyza Graham Bortz 30 Jun 2010 06:55:01

Contact us at files@mathworks.com