From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6Pk6LqebvWLcjgAAbAwnHQ (envelope-from ) for ; Thu, 30 Jun 2022 14:48:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AF4GLaebvWLgEgAAG6o9tA (envelope-from ) for ; Thu, 30 Jun 2022 14:48:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 792E29CA3 for ; Thu, 30 Jun 2022 14:48:38 +0200 (CEST) Received: from localhost ([::1]:49644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6tb3-0006PE-Hf for larch@yhetil.org; Thu, 30 Jun 2022 08:48:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6tZY-0006Lt-W4 for emacs-orgmode@gnu.org; Thu, 30 Jun 2022 08:47:05 -0400 Received: from pb-smtp21.pobox.com ([173.228.157.53]:50974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6tZV-0001nE-VW for emacs-orgmode@gnu.org; Thu, 30 Jun 2022 08:47:04 -0400 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 51F151A5E7B; Thu, 30 Jun 2022 08:46:58 -0400 (EDT) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=Rrz+reInZRIr8BNa1dplkYJ5GY4+MjyisIfL43 IhhTI=; b=uRloIIQoQGAVJS9oo1RzEcGvfKWtWqJBrhN/R1jwnVajKi6I3z8WpK +yRlg6spyOxf1u8mIMv3ZB+9lFevyBLbRPdNzHdTL+W2LoTQPBi9Hl0aOEcgAvn3 rmvo6/jFNCDhp94hAoxzKiZLwJhABRD0nw6p6wlufQlMyc98/pc+M= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 4B1151A5E7A; Thu, 30 Jun 2022 08:46:58 -0400 (EDT) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 2973F1A5E78; Thu, 30 Jun 2022 08:46:55 -0400 (EDT) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 0D5261208F5; Thu, 30 Jun 2022 08:46:53 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 06B5A12064D; Thu, 30 Jun 2022 08:46:53 -0400 (EDT) Date: Thu, 30 Jun 2022 08:46:52 -0400 (EDT) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: Gerardo Moro cc: emacs-orgmode Subject: Re: Change both width and height of R plot in SRC block In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Pobox-Relay-ID: B8C9BAC8-F872-11EC-946B-CBA7845BAAA9-56320186!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=wtd@pobox.com; helo=pb-smtp21.pobox.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_CSS=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656593319; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4TJZi5DgkxSWCsIw//Z4C9BIVL0Tvq1ut/5HhW009bk=; b=KK8JJzgetCzRuq4RHxownVYg8rnc4b5la8jigjogjGIS4MRX0ibmAMjin3O8zHD1nA8a48 hR6nqDrd86dammaBug/4lx5FAi5mwsGkOxcqnOWS0nR9Cs5VbGD6jp6RwLfUJKGHA5PyxJ DcCLxM31VZEXLaO3uiBIDQ1VqzqkS3ySOoivDDgbsJIY7nkreV2+RiFy4NXoJJbiD/iRVE g9YSIlfaNTjm2pGmRayC0BaE59TKurGJOMFYSeftyvrBJ97h5aUcb80s5FIV4MAdycauVC VEcD6YP/uauDx3GMpO7DzyA4+UQKS/8obk1BHibEf08dO9ou0vis7p/wDZdvRg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656593319; a=rsa-sha256; cv=none; b=SMrgjQvgtJ4x0BQSkB1CVwvPDsWru7lqDE0ZZpAJro4n4LYvqjKy3K1SOHQFjBJ2T8N0iq dC3sVinVTzdJ1aJQiiDXsWs+ZEYI6RNCM7jhFCxGoS70V1/MYPHgPofmw14PrnAt1QScsg yZC2Bvx04SG9dzCPbTdByotAD9vXCREQC7ODWp8k0PsUE1s9PUW18zGUNMKXQa9oGfMOZC uUK7WVU+IkDMXrQGNCudoAA3Qs0Nz24v2S9ai08/TVfD7dlgOd9Khk/+8eCPohoBumXwxf u9ffNmvdI6IcvoRVs+LrNS94MgLN3kD9+kIJPzsU2G1gG16F4f3+7WLOFQ700g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=uRloIIQo; dmarc=pass (policy=none) header.from=pobox.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=uRloIIQo; dmarc=pass (policy=none) header.from=pobox.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 792E29CA3 X-Spam-Score: -2.55 X-Migadu-Scanner: scn1.migadu.com X-TUID: UDVBA2XMrvxu On 30 June 2022, Gerardo Moro wrote: > I have been trying for over a year to change the output plot size when > using Orgmode SRC blocks with R. I have tried both using orgmode settings > and R settings. > > I have a table from which I take some values. > > #+name: cost > #+begin_src R :results output file graphics :file imag/cost.jpg :var tab=cost You can put height and width attributes for the image into the source block header: #+begin_src R :results output file graphics :file imag/cost.jpg :var tab=cost :width 800 :height 400 (You mention #+attr_org, but there's a bad colon in what you quote.) If this doesn't work, please give a reproducible example, and we can figure it out. The code you quote doesn't work because we don't have the cost data. Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada