[Rd] Graphics, grid with type="b" causes problems (PR#2723)
wolfgang.waser at rz.hu-berlin.de
wolfgang.waser at rz.hu-berlin.de
Thu Apr 3 15:04:47 MEST 2003
Full_Name: Wolfgang Waser
Version: 1.6.2
OS: Windows98SE / SuSE Linux 8.1
Submission from: (NULL) (141.20.60.4)
Including >type="l"< or >type="b"< in plot command causes problems with grid:
.....
layout <- par(fin=c(3.46,3.46),mai=c(0.63,0.63,0.05,0.05),mgp=c(2,0.7,0),
tcl=0.35,las=1,cex.axis=0.9,cex.lab=1,ps=10)
plot(data.trout[,1],data.trout[,2],xlim=range(6.5,8.5),ylim=range(120,470),
xlab="pH",ylab=expression(paste("P"[O[2]],
" (Torr)")),bg="white",grid(lty=2,lwd=0.6))
.....
This plot works fine. Note: the grid is "in the back", i.e. does not overlay
tick marks, plot symbols or boundary lines.
Including type="b" (or "l") causes an error message:
...
Error in plot.window(xlim, ylim, log, asp, ...) :
"log=" specification must be character
...
Including >log=""< within the plot command gets rid of the message. However, now
the grid (light grey) overlays tick marks, lines of the plot, and boundary
lines.
Regards
Wolfgang
More information about the R-devel
mailing list