Skip to content
Prev 178728 / 398506 Next

Change font type PNG device with Lattice xyplot

Hi

Here's one way ...

  xyplot(y~x,data=a,
    ylab="y-axis",
    xlab="x-axis",
    ylim=c(0,5),
    par.settings=list(axis.line=list(lwd=1.5),
                      strip.border=list(lwd=2),
                      # This is the important bit
                      grid.pars=list(fontfamily="mono")),
    scales=list(y=list(tick.number=5,tck=0.5)),
    type="l",lwd=3,lty=1,col=2)

See ?windowsFonts for how to set up other fonts to use.

Paul
RBlonk wrote: