Skip to content
Prev 246311 / 398502 Next

Print plot to pdf, jpg or any other format when using scatter3d error

On Jan 3, 2011, at 8:17 PM, Jurica Seva wrote:

            
#???  I thought the function was scatterplot3d()
Why name it ".ps" when you are using pdf.dev()?
When you want to get output to the file device, you need to "surround"  
the plotting commands. the pdf call goes at the beginning of the loop  
and the dev.odd at the end. It seems dangerous to specify the number  
to dev.off since there might be no or more than one device already  
open. If you just use dev.off() you will close the last device that  
was opened,'
# you should also make sure you created a valid file string. We cannot  
check since you have not offered a reproducible example.
David Winsemius, MD
West Hartford, CT