MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Histogram question..

  • To: mathgroup at smc.vnet.net
  • Subject: [mg9525] Histogram question..
  • From: "David Palmer" <dpalmer at tanstaafl.net>
  • Date: Sat, 8 Nov 1997 23:04:50 -0500
  • Organization: TANSTAAFL
  • Sender: owner-wri-mathgroup at wolfram.com

I am having a problem with creating histograms. If I use a set amount,
let's say .25 for my step in Bincounts[] and Range[] then the following
works fine.

{spreado,spreadh, spreadl,spreadc}=	{ao,ah,al,ac}- {bo,bh,bl,bc};
spreadaverage = (spreado + spreadh + spreadl + spreadc) /4 ; spreadmin
= Min[spreadaverage];
spreadmax = Max[spreadaverage];
spreadsplitvalue = .25
spreadfreq =
BinCounts[spreadaverage,{spreadmin,spreadmax,spreadsplitvalue}];
midpoints = Range[spreadmin,spreadmax,spreadsplitvalue];

spreadhistogram = 
  BarChart[Transpose[{spreadfreq,
midpoints}],DisplayFunction->Identity];

This is what I want to use since it allows me to limit the amount of
bars in my histogram.

spreadsplitvalue = N[(spreadmax-spreadmin)/11,2]

But when I do I get the folloing error message. Transpose::"nmtx": 
    \:f3b5The first two levels of the one-dimensional list \!\({{6, 27,
65, \
78, 74, 86, 91, 52, 18, 13, 8}, \[LeftSkeleton]1\[RightSkeleton]}\)
cannot be \
transposed.

I know I must be missing something easy, any help would be appreciated.
-- 
David Palmer
TANSTAAFL Research & Trading LLC
dpalmer at tanstaafl.net


  • Prev by Date: crop .eps-files?
  • Next by Date: Calculus II
  • Previous by thread: Re: crop .eps-files?
  • Next by thread: Calculus II