s-news
[Top] [All Lists]

Re: stem and leaf

To: "Heeringa W.J." <heeringa@let.rug.nl>
Subject: Re: stem and leaf
From: Greg Snow <snow@fisher.byu.edu>
Date: Sat, 8 Dec 2001 09:00:47 -0700 (MST)
Cc: s-news@lists.biostat.wustl.edu
In-reply-to: <01120717240400.30388@geri>
On Fri, 7 Dec 2001, Heeringa W.J. wrote:

> Dear S-PLUS users,
> 
> I would like to make a stem-and-leaf diagram in S-PLUS en search for it in 
> the pull-down menus. Is it true that the only way to create such a diagram is 
> to use the command "stem" in the commands window?

S-PLUS does not come with a menu to do stem and leaf plots, however if you
run the following command:

guiCreate("MenuItem",
        Name="SPlusMenuBar$Graph$StemAndLeaf", Type="MenuItem",
        MenuItemText="&Stem and Leaf plot",
        Action="Function", Command="stem")

Then you will find that there is now a "Stem and Leaf" option on the
"Graph" menu.  Selecting it will bring up a dialog window with all of the
fields that you can specify.  To test it, enter "fuel.frame$Weight" in the
field labeled "x" and click "OK".

If yo want a nicer looking dialog, then you need to use "guiCreate" to
make the appropriate "Property"s and a "FunctionInfo", see the programmers
guide for more detail.

hope this helps,

-- 
Greg Snow, PhD                Office: 223A TMCB
Department of Statistics      Phone:  (801) 378-7049
Brigham Young University      Dept.:  (801) 378-4505
Provo, UT  84602              email:  gls@byu.edu


<Prev in Thread] Current Thread [Next in Thread>