This has to be a very fundamental question in S, but I haven't been
able to find it -- probably because I use the wrong nomenclature.
I want to create a function that generates a plot as its output. I
can write a script that generates the plot I want, but when I turn
the script into a function, the plot never appears disappearing as
soon as the function exits, as do all other objects within a function
unless I use, say, the <<- operator. How do I make the plot itself
persist after the function exits?
Kim Elmore
Kim Elmore, Ph.D.
University of Oklahoma
Cooperative Institute for Mesoscale Meteorological Studies
"All of weather is divided into three parts: Yes, No, and Maybe. The
greatest of these is Maybe" The original Latin appears to be garbled.
|