emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* default units for graphics in R code blocks
@ 2020-03-30 15:44 Tyler Smith
  2020-03-30 16:32 ` John Hendy
  0 siblings, 1 reply; 5+ messages in thread
From: Tyler Smith @ 2020-03-30 15:44 UTC (permalink / raw)
  To: Emacs Org-Mode Help

Hi,

The worg documentation for R code indicates the default units for
graphics output is 'in', inches. However, when I try the following:

#+begin_src R :results file graphics :file ca.jpg :width 8 :height 11
  plot(1:10)
#+end_src

I get an error noting the margins are too large. If I change the width
and height arguments to 800, it works just fine, and the resulting image
is pretty small.

I can also get a working image by specifying units as in and res as 100.

I conclude from this that the default units are actually pixels? Is that
correct? If so I can update the docs.

Best,

Tyler



-- 
Tyler Smith
http://plantarum.ca

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-30 17:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-30 15:44 default units for graphics in R code blocks Tyler Smith
2020-03-30 16:32 ` John Hendy
2020-03-30 16:58   ` Tyler Smith
2020-03-30 17:08     ` John Hendy
2020-03-30 17:25       ` Tyler Smith

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).