> There is a bug in ggsave() for bitmap devices: it computes the width and
> height from 'dpi', but it fails to pass that information on to the devices,
> which assume 72dpi. So what it actually asked for was a
> 8 x 6.67 inch plot at 72dpi. 72dpi would be a better default, as not all
> of the
If I do
windows(width=6, height=5)
then the pdf plot is very good copy of what I see on screen. So the main
issue seems to be that you changed the device size when you asked for the
save. If you do that, you need to change 'pointsize' too -- but as you
changed the aspect ratio, you cannot
What you can do is change the parameter "pointsize" when creating the
device. See ?pdf. It will change the size of all texts (labels, legend,
title...) at the same time. I tried it with png, it works quite well
(provided you use the latest versions of everything, including cairo, I
think).
Xa
> More generally, how do I control the size of fonts used in legends
> and axis labels?
There is no general way (yet) - it is on my customisation to do list,
which I hope to make progress on over summer.
Hadley
--
http://had.co.nz/
__
R-help@r-projec
Sorry for not providing this in my initial posting.
I'm using R version 2.7.0 (2008-04-22), on Win XP Pro.
As I said, the .png output matched what I saw on screen.
It was the .pdf output for which the font size was noticeably
larger, enough to make the legend run off the screen.
-Michael
Prof B
What version of R and OS is this? Prior to R 2.7.0 there was little
attempt to match output dimensions from various devices, and one of the
png devices in 2.7.0 has an error in doing so, fixed in R-patched (see
NEWS).
On Mon, 12 May 2008, Michael Friendly wrote:
Hi
In the following, the gr
Hi
In the following, the graph I see on the screen and the .png output
coincide. However, in the .pdf file, the fonts seem to be scaled
fairly larger, resulting in the label for the top legend disappearing.
Is this an infelicity or bug, or is there something I've missed?
More generally, how do
7 matches
Mail list logo