how to save a plot each time the same size same everything

29 views
Skip to first unread message

Fadi Fouad Al-Sammak

unread,
Mar 27, 2012, 3:03:18 PM3/27/12
to Deducer
I wonder how one can in Deducer save his final plots in lets say png
format but of the same dimensions height and length each time he
creates another plot? anybody can help in that? Thanks in advance

Ian Fellows

unread,
Mar 27, 2012, 3:33:29 PM3/27/12
to ded...@googlegroups.com
Fadi, this is best done though code (not dialogs). see the 'png' function.

best,
Ian

ffsa...@gmail.com

unread,
Mar 28, 2012, 8:12:24 PM3/28/12
to ded...@googlegroups.com
thanks for the hint, the next question is how to implement this thing:
I want whatever plot finished within Deducer to be automatically saved in a SPECIFIED directory, and given a number parsed to "xxxx_Deducer.png" each time, also specify the dimensions height and length. Please can this wishful theory see the light?

regards

On Tuesday, March 27, 2012 9:33:29 PM UTC+2, Ian wrote:
Fadi, this is best done though code (not dialogs). see the 'png' function.

best,
Ian

On Tue, Mar 27, 2012 at 12:03 PM, Fadi Fouad Al-Sammak

Helios De Rosario

unread,
Mar 29, 2012, 3:37:36 AM3/29/12
to Deducer
Hi, Fadi. As Ian recently defined it, Deducer is a "general purpose"
GUI. Your request is a very specific problem, and it is unlikely that
other people need exactly that thing, so it's logical that you don't
find that feature in Deducer dialogs.

Of course, it's an open source extensible GUI as well, so you can
modify the dialogs for your specific purposes, if you are willing to
take the trouble. Anyway, for this case my advice is do it throug
code. When you create a plot in the Plot Builder, you can copy the
code of the plot you are creating, or save the object created by
ggplot. You can use that code or the saved object in your custom
function, that also gets the specified directory, the dimensions you
want, etc.

But how to implement that function is a general R-question, that has
little or nothing to do with Deducer.

Regards,
Helios
Reply all
Reply to author
Forward
0 new messages