On May 6, 2011, at 1:11 PM, wwreith wrote:
The following code works mostly. It runs fine but...
1. Is there a way to increment the xlab for each graph? I would like
to have
Graph 1, Graph 2, etc. Right now it just gives me Graph i over and
over
again.
Use the power of bquote. See modif
1. ?paste ?sprintf
2. ?par (look at col.axis) ?axis
3. ?pdf ?png ?dev.copy
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org]
This should work!!
for(i in 1:12){
xLabel <- paste("Graph",i)
plotTitle <- paste("Graph",i,".jpg")
jpeg(plotTitle)
print(hist(zNort1[,i], freq=FALSE, xlab=xLabel, col="blue",
main="Standardized Residuals Histogram", ylim=c(0,1), xlim=c(-3.0,3.0)),axes
= FALSE)
axis(1, col = "blue",col.axis = "bl
3 matches
Mail list logo