emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tyler Smith <tyler@plantarum.ca>
To: Emacs Org-Mode Help <emacs-orgmode@gnu.org>
Subject: default units for graphics in R code blocks
Date: Mon, 30 Mar 2020 11:44:31 -0400	[thread overview]
Message-ID: <87zhbx6e5c.fsf@plantarum.ca> (raw)

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

             reply	other threads:[~2020-03-30 15:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30 15:44 Tyler Smith [this message]
2020-03-30 16:32 ` default units for graphics in R code blocks John Hendy
2020-03-30 16:58   ` Tyler Smith
2020-03-30 17:08     ` John Hendy
2020-03-30 17:25       ` Tyler Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zhbx6e5c.fsf@plantarum.ca \
    --to=tyler@plantarum.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).