[R] Question re matplot

David Kaplan dkaplan at education.wisc.edu
Sun Oct 14 05:00:25 CEST 2007


Hi,

I have the following script for matplot

matplot(battingagg$X, battingagg[, c("HR","RBI","X2B", "BB", 
"R", "SB")], type="b",lty=4,lwd=2, col=1:4,xlab = "Year", 
ylab "(1)HRs, (2)RBIs, (3)DOUBLES,(4)BB,(5)Runs,(6) BB", 
pty="m",sub = "Figure 2.  Plot of Selected Offensive 
Baseball Statistics: 1901 - 2005",)

The problem I'm having is with ylab.  It seems not to be 
giving the entire label, but rather cuts of the first 3 
variables giving me only (4)BB,(5)Runs,(6) BB.   How can I 
get it to print the entire label?

Thanks in advance.

David


-- 
=======================================================================
David Kaplan, Ph.D.
Professor
Department of Educational Psychology
University of Wisconsin - Madison
Educational Sciences, Room 1061
1025 W. Johnson Street
Madison, WI 53706

email: dkaplan at education.wisc.edu
Web: 
http://www.education.wisc.edu/edpsych/facstaff/kaplan/kaplan.htm
Phone: 608-262-0836
Fax:   608-262-0843



More information about the R-help mailing list