Negative numbers in stem and leaf plots are discussed here: http://en.wikipedia.org/wiki/Stem-and-leaf_display
--Kip Sent from my iPad On Mar 14, 2013, at 8:00 AM, Raul Miller <[email protected]> wrote: > I am not sure that negative numbers are consistent with stem and leaf plots. > > That said, you could use an existing mechanism by manipulating the > numbers before handing them off. For example: > > fudge=: ] + 0&> * (_20 * 0 = 10&|) - 10 2&p. > > -- > Raul > > On Wed, Mar 13, 2013 at 5:16 PM, Brian Schott <[email protected]> wrote: >> Raul, >> >> This is what I got with your newer showStemLeaf. I apologize for the >> poor rendering. Suffice it to say that my experiment with your newer >> showStemLeaf is unsatisfactory, too, because _2 appears in the >> stemplot as 8, not 2. Perhaps you were mislead by my use of the work >> stem, when leaf might have been better. I think the 0 is a stem and >> the 2 4 1 and 8 are leaves. Right? >> >> >> showStemLeaf=: (}:@":@>:@*&10@expandStems@[ >> ;":&>@expandLeaves)&>/@(>@{. ; <@{:)@|:@stemleaf@/:~ >> showStemLeaf _2 4 1 8┌─┬─────┐ >> │_│8 │ >> │ │1 4 8│ >> └─┴─────┘ >> showStemLeaf 2 4 1 8 >> ┌┬───────┐ >> ││1 2 4 8│ >> └┴───────┘ >> >> >> >> >> -- >> (B=) <-----my sig >> Brian Schott >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
