s-news
[Top] [All Lists]

Potting from within a function

To: S-News <s-news@wubios.wustl.edu>
Subject: Potting from within a function
From: Kim Elmore <Kim.Elmore@noaa.gov>
Date: Fri, 02 Mar 2007 09:08:48 -0600
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.


<Prev in Thread] Current Thread [Next in Thread>
  • Potting from within a function, Kim Elmore <=