.BG
.FN menu
.TL
Menu Interaction Function
.CS
menu(choices, graphics=T)
.AG choices
character vector giving the menu choices to be presented to the user.
.AG graphics
if `TRUE', a graphics menu (for example, a pop-up menu) will be used if
the current graphics device supports one.
.PP
For non-graphics menus, the user must respond with either `0' or a number
between `1' and `length(choices)'.
.RT
the number
corresponding to the selected item.
If no selection is made, 0 is returned.
.EX
items <- c("List Objects", "quit")
switch(menu(items)+1, cat("No Action\\n"), ls(), q())
.KW iplot
.WR
