cberry@tajo.ucsd.edu
2000-Mar-26 20:49 UTC
[Rd] matlines, matpoints don't follow prototype (PR#506)
The Blue Book allows the 'type' argument to be used in matpoints and matlines. matlines(x, y, type="l", lty=1:5, pch=, col=1:4) R-1.0.0 does not. Thus, type="h", "b", must be invoked thru matplot( x, y, type = "h", add=TRUE) For the sake of consistency with S, it would be nice to have matlines defined as: "matlines" <- function(x, y, type = 'l', lty=1:5, lwd = 1, pch=NULL, col=1:6, ...) matplot(x=x, y=y, type=type, lty=lty, lwd=lwd, pch=pch, col=col, add=TRUE, ...) and similarly for matpoints. Chuck Berry -- Charles C. Berry (858) 534-2098 Dept of Family/Preventive Medicine E mailto:cberry@tajo.ucsd.edu UC San Diego http://hacuna.ucsd.edu/members/ccb.html La Jolla, San Diego 92093-0645 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
maechler@stat.math.ethz.ch
2000-Apr-07 09:35 UTC
[Rd] matlines, matpoints don't follow prototype (PR#506)
>>>>> "ChuckB" == Charles C Berry <cberry@tajo.ucsd.edu> writes:ChuckB> The Blue Book allows the 'type' argument to be used in matpoints and ChuckB> matlines. ChuckB> matlines(x, y, type="l", lty=1:5, pch=, col=1:4) ChuckB> R-1.0.0 does not. ChuckB> Thus, type="h", "b", must be invoked thru matplot( x, y, type = "h", ChuckB> add=TRUE) ChuckB> For the sake of consistency with S, it would be nice to have ChuckB> matlines defined as: ChuckB> "matlines" <- ChuckB> function(x, y, type = 'l', lty=1:5, lwd = 1, pch=NULL, col=1:6, ...) ChuckB> matplot(x=x, y=y, type=type, lty=lty, lwd=lwd, pch=pch, col=col, ChuckB> add=TRUE, ...) ChuckB> and similarly for matpoints. You are right. I've fixed it for the upcoming patch release (1.0.1). Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._