title: Having problems saving a neural net plot using neuralnet package - R
body: <p>I'm using the <code>neuralnet</code> package in R, however am having problems saving the plot to disk.</p>
  
  <pre><code>data(iris)
  attach(iris)
  library(neuralnet)
  
  nn &lt;- neuralnet(as.numeric(Species) ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width, data = iris)
  
  png("test.png")
  plot(nn)
  dev.off()
  </code></pre>
  
  <p>Have attempted to refere to the <a href="http://cran.r-project.org/web/packages/neuralnet/neuralnet.pdf" rel="noreferrer">manual</a>, in the section <code>plot.nn()</code> it says:</p>
  
  <pre><code>file      a character string naming the plot to write to. If not stated, 
  the plot will not be saved.
  </code></pre>
  
  <p>However doing the following yields no valid plot saved:</p>
  
  <pre><code>png("test.png")
  plot(nn, file = "test.png")
  dev.off()
  </code></pre>
  
  <p>Platform:</p>
  
  <pre><code>Mac OSX 10.7.3
  </code></pre>
  
  <p>R version:</p>
  
  <pre><code>platform       x86_64-apple-darwin11.3.0    
  arch           x86_64                       
  os             darwin11.3.0                 
  system         x86_64, darwin11.3.0         
  status                                      
  major          2                            
  minor          15.1                         
  year           2012                         
  month          06                           
  day            22                           
  svn rev        59600                        
  language       R                            
  version.string R version 2.15.1 (2012-06-22)
  nickname       Roasted Marshmallows  
  </code></pre>
  
  <p>Note: R was installed via macports</p>