Re: [R] Multpile (45x8) graphs of the same page / device: titles crammed

2008-12-10 Thread baptiste auguie

Hi,

font should be an integer as described in ?par. I think you want to  
play with cex.main (possibly cex in combination, depending on what  
your are plotting)



x - seq(0, 10)

pdf(width=8, height=20)
par(mfrow=c(45, 8), mai=c(0,0.1,0.1,0))

sapply(1:(45*8), function(ii) {
plot(x, rnorm(x))
title(paste(test, ii), cex.main=0.5)
}) - b.quiet
dev.off()



Hope this helps,

baptiste

On 10 Dec 2008, at 13:42, tsunhin wong wrote:


Dear R users,

I'm trying to plot 45x8 graphs on the same pdf / device for the sake
of visual comparison.
par(mfcol=c(45,8))
par(mai=c(0,0,0,0))

In ?title, I can see there are cex and font settings: I set cex = 0.01
and font = 1: it is still very large, and then I tried setting font 
1, e.g. font = 0.5, Then I get an error:

Error in title(paste(Ppercent, % , t30v2msa1.data, sep=), cex  
= 0.1, :

 invalid value specified for graphical parameter font

Is there a work around so that I can see all the title?
At the moment, if I set the title to font=1, the upper halves of the
fonts / letters of all the title will be cut, so I can't see the
Ppercent...

Thanks!

Regards,

 John

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


_

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Multpile (45x8) graphs of the same page / device: titles crammed

2008-12-10 Thread Prof Brian Ripley

font is an integer number (1,2,3,4,5 on that device): please do read ?par.

You are looking of 'pointsize': see ?pdf, but I think rather that you 
should use a larger plotting surface (see 'height' and 'width')



On Wed, 10 Dec 2008, tsunhin wong wrote:


Dear R users,

I'm trying to plot 45x8 graphs on the same pdf / device for the sake
of visual comparison.
par(mfcol=c(45,8))
par(mai=c(0,0,0,0))

In ?title, I can see there are cex and font settings: I set cex = 0.01
and font = 1: it is still very large, and then I tried setting font 
1, e.g. font = 0.5, Then I get an error:

Error in title(paste(Ppercent, % , t30v2msa1.data, sep=), cex = 0.1, :
 invalid value specified for graphical parameter font

Is there a work around so that I can see all the title?
At the moment, if I set the title to font=1, the upper halves of the
fonts / letters of all the title will be cut, so I can't see the
Ppercent...

Thanks!

Regards,

 John

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Multpile (45x8) graphs of the same page / device: titles crammed

2008-12-10 Thread tsunhin wong
What if cex=0.001 with font=1 will still have the title font too
large? (so that the upper halves of title is cut off and cannot be
seen?)
Will there be a workaround? Can there be a work around so that I can
label each small graphs with the info I need in a smaller way?
Thanks!

Regards,

  John

On Wed, Dec 10, 2008 at 8:57 AM, baptiste auguie [EMAIL PROTECTED] wrote:
 Hi,

 font should be an integer as described in ?par. I think you want to play
 with cex.main (possibly cex in combination, depending on what your are
 plotting)

 x - seq(0, 10)

 pdf(width=8, height=20)
 par(mfrow=c(45, 8), mai=c(0,0.1,0.1,0))

 sapply(1:(45*8), function(ii) {
plot(x, rnorm(x))
title(paste(test, ii), cex.main=0.5)
}) - b.quiet
 dev.off()


 Hope this helps,

 baptiste

 On 10 Dec 2008, at 13:42, tsunhin wong wrote:

 Dear R users,

 I'm trying to plot 45x8 graphs on the same pdf / device for the sake
 of visual comparison.
 par(mfcol=c(45,8))
 par(mai=c(0,0,0,0))

 In ?title, I can see there are cex and font settings: I set cex = 0.01
 and font = 1: it is still very large, and then I tried setting font 
 1, e.g. font = 0.5, Then I get an error:

 Error in title(paste(Ppercent, % , t30v2msa1.data, sep=), cex = 0.1,
 :
 invalid value specified for graphical parameter font

 Is there a work around so that I can see all the title?
 At the moment, if I set the title to font=1, the upper halves of the
 fonts / letters of all the title will be cut, so I can't see the
 Ppercent...

 Thanks!

 Regards,

 John

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

 _

 Baptiste Auguié

 School of Physics
 University of Exeter
 Stocker Road,
 Exeter, Devon,
 EX4 4QL, UK

 Phone: +44 1392 264187

 http://newton.ex.ac.uk/research/emag
 __



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Multpile (45x8) graphs of the same page / device: titles crammed

2008-12-10 Thread Detlef Steuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 10 Dec 2008 09:22:55 -0500
tsunhin wong [EMAIL PROTECTED] wrote:

 What if cex=0.001 with font=1 will still have the title font too
 large? (so that the upper halves of title is cut off and cannot be
 seen?)
 Will there be a workaround? Can there be a work around so that I can
 label each small graphs with the info I need in a smaller way?

I'd put the needed info in the graph with text().

detlef

 Thanks!
 
 Regards,
 
   John
 
 On Wed, Dec 10, 2008 at 8:57 AM, baptiste auguie [EMAIL PROTECTED] wrote:
  Hi,
 
  font should be an integer as described in ?par. I think you want to play
  with cex.main (possibly cex in combination, depending on what your are
  plotting)
 
  x - seq(0, 10)
 
  pdf(width=8, height=20)
  par(mfrow=c(45, 8), mai=c(0,0.1,0.1,0))
 
  sapply(1:(45*8), function(ii) {
 plot(x, rnorm(x))
 title(paste(test, ii), cex.main=0.5)
 }) - b.quiet
  dev.off()
 
 
  Hope this helps,
 
  baptiste
 
  On 10 Dec 2008, at 13:42, tsunhin wong wrote:
 
  Dear R users,
 
  I'm trying to plot 45x8 graphs on the same pdf / device for the sake
  of visual comparison.
  par(mfcol=c(45,8))
  par(mai=c(0,0,0,0))
 
  In ?title, I can see there are cex and font settings: I set cex = 0.01
  and font = 1: it is still very large, and then I tried setting font 
  1, e.g. font = 0.5, Then I get an error:
 
  Error in title(paste(Ppercent, % , t30v2msa1.data, sep=), cex = 0.1,
  :
  invalid value specified for graphical parameter font
 
  Is there a work around so that I can see all the title?
  At the moment, if I set the title to font=1, the upper halves of the
  fonts / letters of all the title will be cut, so I can't see the
  Ppercent...
 
  Thanks!
 
  Regards,
 
  John
 
  __
  R-help@r-project.org mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide
  http://www.R-project.org/posting-guide.html
  and provide commented, minimal, self-contained, reproducible code.
 
  _
 
  Baptiste Auguié
 
  School of Physics
  University of Exeter
  Stocker Road,
  Exeter, Devon,
  EX4 4QL, UK
 
  Phone: +44 1392 264187
 
  http://newton.ex.ac.uk/research/emag
  __
 
 
 
 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkk/0qwACgkQ0g+Q+yDyuZjtUQCdHeOi4+G4MNJ9+gOdYcJ+/3fd
E20AoK050pCXFal1fuGoeXDeuNOavY6A
=1TFJ
-END PGP SIGNATURE-
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Multpile (45x8) graphs of the same page / device: titles crammed

2008-12-10 Thread tsunhin wong
I found I have to use font=1, and I found it works when I set:
par(mfcol=c(45,8))
par(mar=c(0,0.5,1,0.5))
instead of
par(mfcol=c(45,8))
par(mai=c(0,0,0,0))


On Wed, Dec 10, 2008 at 9:22 AM, tsunhin wong [EMAIL PROTECTED] wrote:
 What if cex=0.001 with font=1 will still have the title font too
 large? (so that the upper halves of title is cut off and cannot be
 seen?)
 Will there be a workaround? Can there be a work around so that I can
 label each small graphs with the info I need in a smaller way?
 Thanks!

 Regards,

  John

 On Wed, Dec 10, 2008 at 8:57 AM, baptiste auguie [EMAIL PROTECTED] wrote:
 Hi,

 font should be an integer as described in ?par. I think you want to play
 with cex.main (possibly cex in combination, depending on what your are
 plotting)

 x - seq(0, 10)

 pdf(width=8, height=20)
 par(mfrow=c(45, 8), mai=c(0,0.1,0.1,0))

 sapply(1:(45*8), function(ii) {
plot(x, rnorm(x))
title(paste(test, ii), cex.main=0.5)
}) - b.quiet
 dev.off()


 Hope this helps,

 baptiste

 On 10 Dec 2008, at 13:42, tsunhin wong wrote:

 Dear R users,

 I'm trying to plot 45x8 graphs on the same pdf / device for the sake
 of visual comparison.
 par(mfcol=c(45,8))
 par(mai=c(0,0,0,0))

 In ?title, I can see there are cex and font settings: I set cex = 0.01
 and font = 1: it is still very large, and then I tried setting font 
 1, e.g. font = 0.5, Then I get an error:

 Error in title(paste(Ppercent, % , t30v2msa1.data, sep=), cex = 0.1,
 :
 invalid value specified for graphical parameter font

 Is there a work around so that I can see all the title?
 At the moment, if I set the title to font=1, the upper halves of the
 fonts / letters of all the title will be cut, so I can't see the
 Ppercent...

 Thanks!

 Regards,

 John

 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.

 _

 Baptiste Auguié

 School of Physics
 University of Exeter
 Stocker Road,
 Exeter, Devon,
 EX4 4QL, UK

 Phone: +44 1392 264187

 http://newton.ex.ac.uk/research/emag
 __




__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.