* PNG R plots size
@ 2013-12-17 1:30 Vicente Vera
2013-12-17 20:22 ` Michael Gauland
0 siblings, 1 reply; 2+ messages in thread
From: Vicente Vera @ 2013-12-17 1:30 UTC (permalink / raw)
To: emacs-orgmode
Hello. I have a source code block for an R plot with the following
header:
#+BEGIN_SRC R :results output graphics :file figure1.png :exports results
It works, but the default size is too small. When I change the
extension to SVG or PDF (i.e. when exporting to LaTeX, but is not what
i need right now) the dimensions are fine.
How can I control the size of a PNG graphic? Do I need to tweak
something inside Org or specify something in R?
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PNG R plots size
2013-12-17 1:30 PNG R plots size Vicente Vera
@ 2013-12-17 20:22 ` Michael Gauland
0 siblings, 0 replies; 2+ messages in thread
From: Michael Gauland @ 2013-12-17 20:22 UTC (permalink / raw)
To: emacs-orgmode
Vicente Vera <vichovp <at> gmail.com> writes:
> How can I control the size of a PNG graphic? Do I need to tweak
> something inside Org or specify something in R?
I use a line like this:
#+HEADER: :res 300 :units cm :width 15 :height 15
to create a 15cm square PNG at 300 dpi.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-17 20:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 1:30 PNG R plots size Vicente Vera
2013-12-17 20:22 ` Michael Gauland
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).