[R] plot - no main title and missing abscissa value

Iain Gallagher i.j.gallagher at sms.ed.ac.uk
Mon Oct 10 13:20:32 CEST 2005


Hi all.

I have defined a plot thus:

par(mar=c(5,5,4,5),las=1, xpd=NA)
plot(Day, Ym1Imp, ylim=c(0,100), type="b", bty="l", main="Ym1 
Expression", cex=1.3, xaxt="n", yaxt="n") #plot implant data
axis(side=1, at=c(0,1,3,5,7,10,14,21), labels=c(0,1,3,5,7,10,14,21)) # 
label x axis
mtext("Day", side =1, at=10, line=3, cex=1.2) # title x axis

The problem with this graph is that the main title is missing and so is 
the digit "1" at the abscissa position 1 - although the other abscissa 
labels are all there as defined in the "axis" call.

Can anyone shed anylight on why this is? I'm using R 2.1 on OS X.

Thanks

Iain


-- 
Iain Gallagher
Institute for Infection & Immunology Research
Ashworth Laboratories
Kings Buildings
University of Edinburgh
Edinburgh
EH9 3JT
UK

(+44) 0131 651 3630




More information about the R-help mailing list