[R] Setting lattice par parameters

Sundar Dorai-Raj sdorairaj at gmail.com
Thu Apr 23 15:56:10 CEST 2009


Because you're not calling trellis.par.set correctly. It should be:

trellis.par.set(par.ylab.text = list(cex = 0.65), par.xlab.text =
list(cex = 0.65))

However, I usually do things like this:

my.theme <- list(par.ylab.text = list(cex = 0.65), par.xlab.text =
list(cex = 0.65))
barchart(..., par.settings = my.theme)

so the settings are only changed for the current plot and not globally.

HTH,

--sundar

On Thu, Apr 23, 2009 at 6:25 AM,  <Steve_Friedman at nps.gov> wrote:
>
> Hello
>
> I'm plotting a large suite of barcharts and need to modify the size of the
> text for both the yaxis and xaxis labels.
>
> I've tried using the following:
>
>> trellis.par.set(list(par.ylab.text = list(cex = 0.65)),
> trellis.par.set(list = par.xlab.text = list(cex = 0.65))))
>
> On inspection,  however after I invoke this line,
>
>>  trellis.par.get("par.ylab.text")
>>  trellis.par.get("par.xlab.text")
>
> It looks like the parameters have not been modified.
>
> Do I need to do something different than this approach ?
>
> Thank you very much in advance.
>
> Steve
>
> Steve Friedman Ph. D.
> Spatial Statistical Analyst
> Everglades and Dry Tortugas National Park
> 950 N Krome Ave (3rd Floor)
> Homestead, Florida 33034
>
> Steve_Friedman at nps.gov
> Office (305) 224 - 4282
> Fax     (305) 224 - 4147
>
> ______________________________________________
> R-help at 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.
>




More information about the R-help mailing list