Re: [R] Lattice package par.settings/trellis.par.settings questions

2006-08-18 Thread Haynes, Maurice \(NIH/NICHD\) [E]
I am also trying to learn about lattice plots.

To get a succinct listing of the names of the lists of default parameter
settings, try:
  names(trellis.par.get())

To get a succinct listing of all the default parameter settings, try:
  str(trellis.par.get())

HTH,

Maurice Haynes


-Original Message-
From: Gabor Grothendieck [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 12:36 AM
To: Debarchana Ghosh
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Lattice package par.settings/trellis.par.settings
questions


The parameter names are axis.text$font and axis.text$cex .
Try issuing the command:
  trellis.par.get()
to get a complete list.

Here is an example:

histogram(1:10, par.settings = list(axis.text = list(font = 2, cex =
0.5)))


On 8/17/06, Debarchana Ghosh [EMAIL PROTECTED] wrote:
 Hi All,

 I'm trying to modify some of the default graphic parameters in a 
 conditional histogram. While I was able to change the default grey 
 background to white, I couldn't change the axis.font or the xlab font.

 I used the following code:

 /histogram(~V751|V013+V025, finalbase, xlab=Heard of HIV/AIDS 
 (No/Yes), col=c(cyan,magenta), 
 par.settings=list(background=white))

 /The arguments for example  like /axis.font=2/, or /cex=2/ are not 
 working in the /par.settings(). /I also tried to read the manual of 
 /trellis.par.settings()/ but didn't understand how to use it and where

 exactly to put it.

 Any help with this will be appreciated.

 Thanks,
 Debarchana.

 --
 Debarchana Ghosh
 Research Assistant
 Department of Geography
 University of Minnesota
 PH: 8143607580
 email to: [EMAIL PROTECTED]
 www.tc.umn.edu/~ghos0033

 __
 R-help@stat.math.ethz.ch 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.


__
R-help@stat.math.ethz.ch 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.

__
R-help@stat.math.ethz.ch 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] Lattice package par.settings/trellis.par.settings questions

2006-08-18 Thread Deepayan Sarkar
On 8/17/06, Debarchana Ghosh [EMAIL PROTECTED] wrote:
 Hi All,

 I'm trying to modify some of the default graphic parameters in a
 conditional histogram. While I was able to change the default grey
 background to white, I couldn't change the axis.font or the xlab font.

The default background is no longer grey in the latest release.

 I used the following code:

 /histogram(~V751|V013+V025, finalbase, xlab=Heard of HIV/AIDS
 (No/Yes), col=c(cyan,magenta), par.settings=list(background=white))

 /The arguments for example  like /axis.font=2/, or /cex=2/ are not
 working in the /par.settings(). /I also tried to read the manual of
 /trellis.par.settings()/ but didn't understand how to use it and where
 exactly to put it.

The documentation is certainly lacking in this area (I hope to improve
it in the coming months). Gabor mentioned the settings for axis
labels. The xlab text is controlled by par.xlab.text, try:

str(trellis.par.get(par.xlab.text))

Both can be controlled in the call directly, e.g.

histogram(1:10,
  scales = list(font = 2, cex = 0.5),
  xlab = list(cex = 2, col = 'red'))

Such use /is/ fairly well documented.

Deepayan

__
R-help@stat.math.ethz.ch 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] Lattice package par.settings/trellis.par.settings questions

2006-08-18 Thread Deepayan Sarkar
On 8/17/06, Anupam Tyagi [EMAIL PROTECTED] wrote:
 Please read about lattice.par.settings, and not trellis.par.settings. Trellis 
 is
 in S/S-plus.

As far as I know, there's no such thing as lattice.par.settings.
``Trellis''-compatible things in the lattice package have the same
names as the original.

Deepayan

__
R-help@stat.math.ethz.ch 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.


[R] Lattice package par.settings/trellis.par.settings questions

2006-08-17 Thread Debarchana Ghosh
Hi All,

I'm trying to modify some of the default graphic parameters in a 
conditional histogram. While I was able to change the default grey 
background to white, I couldn't change the axis.font or the xlab font.

I used the following code:

/histogram(~V751|V013+V025, finalbase, xlab=Heard of HIV/AIDS 
(No/Yes), col=c(cyan,magenta), par.settings=list(background=white))

/The arguments for example  like /axis.font=2/, or /cex=2/ are not 
working in the /par.settings(). /I also tried to read the manual of 
/trellis.par.settings()/ but didn't understand how to use it and where 
exactly to put it.

Any help with this will be appreciated.

Thanks,
Debarchana.

-- 
Debarchana Ghosh
Research Assistant
Department of Geography
University of Minnesota
PH: 8143607580
email to: [EMAIL PROTECTED]
www.tc.umn.edu/~ghos0033

__
R-help@stat.math.ethz.ch 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] Lattice package par.settings/trellis.par.settings questions

2006-08-17 Thread Gabor Grothendieck
The parameter names are axis.text$font and axis.text$cex .
Try issuing the command:
  trellis.par.get()
to get a complete list.

Here is an example:

histogram(1:10, par.settings = list(axis.text = list(font = 2, cex = 0.5)))


On 8/17/06, Debarchana Ghosh [EMAIL PROTECTED] wrote:
 Hi All,

 I'm trying to modify some of the default graphic parameters in a
 conditional histogram. While I was able to change the default grey
 background to white, I couldn't change the axis.font or the xlab font.

 I used the following code:

 /histogram(~V751|V013+V025, finalbase, xlab=Heard of HIV/AIDS
 (No/Yes), col=c(cyan,magenta), par.settings=list(background=white))

 /The arguments for example  like /axis.font=2/, or /cex=2/ are not
 working in the /par.settings(). /I also tried to read the manual of
 /trellis.par.settings()/ but didn't understand how to use it and where
 exactly to put it.

 Any help with this will be appreciated.

 Thanks,
 Debarchana.

 --
 Debarchana Ghosh
 Research Assistant
 Department of Geography
 University of Minnesota
 PH: 8143607580
 email to: [EMAIL PROTECTED]
 www.tc.umn.edu/~ghos0033

 __
 R-help@stat.math.ethz.ch 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.


__
R-help@stat.math.ethz.ch 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] Lattice package par.settings/trellis.par.settings questions

2006-08-17 Thread Anupam Tyagi
Please read about lattice.par.settings, and not trellis.par.settings. Trellis is
in S/S-plus. Anupam.

__
R-help@stat.math.ethz.ch 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.