[R] Italic fontfaces on specific labels.

Bert Gunter gunter.berton at gene.com
Wed Jun 22 05:03:02 CEST 2011


Use strip = strip.custom(...) in the xyplot call to alter the
parameters of the function that produces the strips. In particular,
see the par.strip.text argument of ?strip.default.

Cheers,
Bert

On Tue, Jun 21, 2011 at 6:36 PM, Kenneth Roy Cabrera Torres
<krcabrer at une.net.co> wrote:
> Hi R users:
>
> I want to have a italic font on the microorganism names,
> but not on the other labels.
>
> How can I do that?
>
> library(lattice)
> t<-rep(seq(0,20,5),2)
> logCFU<-c(2,2.5,3,4,4.5,1.5,2,2.5,3,3.4)
> microorg<-factor(rep(c("E. coli","L. monocytogenes"),each=5))
> xyplot(logCFU~t|microorg,fontface="italic")
>
> Thank you for your help.
>
> Kenneth
>
> ______________________________________________
> 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.
>



-- 
"Men by nature long to get on to the ultimate truths, and will often
be impatient with elementary studies or fight shy of them. If it were
possible to reach the ultimate truths without the elementary studies
usually prefixed to them, these would not be preparatory studies but
superfluous diversions."

-- Maimonides (1135-1204)

Bert Gunter
Genentech Nonclinical Biostatistics



More information about the R-help mailing list