From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tyler Smith Subject: default units for graphics in R code blocks Date: Mon, 30 Mar 2020 11:44:31 -0400 Message-ID: <87zhbx6e5c.fsf@plantarum.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41300) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIwaa-0000NM-2g for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 11:44:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIwaZ-00054c-0I for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 11:44:35 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:59627) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIwaY-0004zQ-Lj for emacs-orgmode@gnu.org; Mon, 30 Mar 2020 11:44:34 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 403B9666 for ; Mon, 30 Mar 2020 11:44:32 -0400 (EDT) Received: from slim (23-233-87-120.cpe.pppoe.ca [23.233.87.120]) by mail.messagingengine.com (Postfix) with ESMTPA id 84963328005A for ; Mon, 30 Mar 2020 11:44:31 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" 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