From: Dan Davison <davison@stats.ox.ac.uk>
To: Graham Smith <myotisone@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] changing size of R graphics in pdf output
Date: Sat, 12 Dec 2009 20:45:17 -0500 [thread overview]
Message-ID: <87tyvv1wb6.fsf@stats.ox.ac.uk> (raw)
In-Reply-To: <2c75873c0912121440w1452f36fjdb41a01cef811354@mail.gmail.com> (Graham Smith's message of "Sat, 12 Dec 2009 22:40:39 +0000")
Hi Graham,
Graham Smith <myotisone@gmail.com> writes:
> I don't seem able to change the size of graphics in the PDF output.
>
> #+begin_src R :file z.pdf :width 20 :height 20 :R-dev-args
> bg="olivedrab", fg="hotpink"
> plot(matrix(rnorm(100), ncol=2), type="l")
> #+end_src
>
> Using this example from an earlier post, regardless of how I change
> the width and height settings the image in the PDF stays the same.
Hmm, this example is working for me. What about the axis annotation --
does that change size relative to the plot?
>
> With this next example:
>
> #+srcname:Boxplots Summary
> #+begin_src R :session BirdData :file BoxplotSummary.pdf :exports both
> boxplot(Wingcrd,Tarsus,Head,Wt,names=c("Wingcrd","Tarsus","Head","Wt"))
> #+end_src
>
> If I add height and width arguments the image stays the same size
> regardless of settings, but the labels for the boxplots become tiny.
That's what one would see if you increase the width and height arguments
to pdf(). I.e. the labels get smaller relative to the plot size (unless
you also scale the labels size by using cex.lab or whatever) Is it
possible that the pdf output *is* changing size, but that your pdf
viewer is rescaling the images to the same size on your screen?
Dan
>
> Am I missing some code somewhere that allows the graphs to be modified.
>
> Thanks,
>
> Graham
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-12-13 1:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-12 22:40 [babel] changing size of R graphics in pdf output Graham Smith
2009-12-13 1:45 ` Dan Davison [this message]
2009-12-13 7:37 ` Graham Smith
2009-12-13 8:23 ` Graham Smith
2009-12-13 13:12 ` Graham Smith
2009-12-13 13:39 ` Graham Smith
2009-12-13 14:23 ` Graham Smith
2009-12-15 19:14 ` Dan Davison
2009-12-15 19:51 ` Graham 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tyvv1wb6.fsf@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=myotisone@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.