emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <wtd@pobox.com>
To: Gerardo Moro <gerardomoro37@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Change both width and height of R plot in SRC block
Date: Thu, 30 Jun 2022 08:46:52 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2206300843400.41713@shell3.miskatonic.org> (raw)
In-Reply-To: <CAF4Fj9ix670qPK0C8u+CCuBdR1gtqGBarS+y5datvF2=v5jb1w@mail.gmail.com>

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


  reply	other threads:[~2022-06-30 12:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30  8:10 Change both width and height of R plot in SRC block Gerardo Moro
2022-06-30 12:46 ` William Denton [this message]
2022-06-30 12:51 ` Ihor Radchenko
2022-06-30 18:30   ` Gerardo Moro
2022-06-30 18:51     ` Thomas S. Dye
2022-07-01 11:01       ` Jeremie Juste

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=alpine.DEB.2.22.394.2206300843400.41713@shell3.miskatonic.org \
    --to=wtd@pobox.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gerardomoro37@gmail.com \
    /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).