Skip to content

savePlot() does not save plot with format set

1 message · S Ellison

#
Strictly, you need to type the extension _if your filename or path
include a period (".")_ but not otherwise.

The filename "test" alone will be saved as paste("test",type). So will,
for example, "/plots/test". But filenames such as
"test.it" or "../plots/test" will not include the extension
automatically.

Steve Ellison
You need type the extension of the file:

plot(rnorm(10))
savePlot("test.png", type="png")
savePlot("test.bmp", type="bmp")
On Tue, Aug 26, 2008 at 6:29 AM, Luis Ridao Cruz <Luisr at frs.fo> wrote:
*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}