From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: [babel] changing size of R graphics in pdf output Date: Sat, 12 Dec 2009 20:45:17 -0500 Message-ID: <87tyvv1wb6.fsf@stats.ox.ac.uk> References: <2c75873c0912121440w1452f36fjdb41a01cef811354@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJdWa-00028O-UI for emacs-orgmode@gnu.org; Sat, 12 Dec 2009 20:45:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJdWW-00022X-38 for emacs-orgmode@gnu.org; Sat, 12 Dec 2009 20:45:28 -0500 Received: from [199.232.76.173] (port=40910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJdWW-00022P-0X for emacs-orgmode@gnu.org; Sat, 12 Dec 2009 20:45:24 -0500 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:56361) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NJdWV-0003bL-K2 for emacs-orgmode@gnu.org; Sat, 12 Dec 2009 20:45:23 -0500 In-Reply-To: <2c75873c0912121440w1452f36fjdb41a01cef811354@mail.gmail.com> (Graham Smith's message of "Sat, 12 Dec 2009 22:40:39 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Graham Smith Cc: emacs-orgmode@gnu.org Hi Graham, Graham Smith 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