[R] dotchart questions

About this list Date view Thread view Subject view Author view Attachment view

From: Richard Valliant (rvalliant@survey.umd.edu)
Date: Sat 29 May 2004 - 02:53:51 EST


Message-id: <s0b7366f.016@SURVEYGWIA.UMD.EDU>

I am trying to put 3 dotcharts side-by-side with minimal space between
each. Each chart is for a different variable, but the vertical axes are
the same.
 
I want to have vertical axis labels on the lefthand chart but no
vertical axis labels on the other two. Plus, I would like very little
space between charts 1 & 2 and between charts 2 & 3.
 
I have one approach but am not too happy with the results. A stripped
down version of the code is below. Matrix A has the row labels (which
are about 20 characters long in the real data). Matrix A1 has no row
labels.
 
 
A <- matrix(1:12, ncol=3, byrow=F)
A1 <- A
dimnames(A) <- list(letters[1:4], letters[5:7])
dimnames(A1) <- list(rep("",4), rep("",3))
 
par(mfrow = c(1,3), mgp = c(1.75, 1, 0.5), mar = c(3, 0, 1.5, 0), oma =
c(2,2,2,2))
 
dotchart(A)
dotchart(A1)
dotchart(A1)

Two questions:
(1) Is there a way with par or something else to make the charts closer
together.
(2) With a lot of rows (45 in the real data) is there a way to control
row spacing (other than getting rid of some rows).
 
I checked the email archives but found no answers there or in the help
file. I have
R.1.8.1
Windows XP, 512 MB RAM
 
Thanks,
 
Richard Valliant, Ph.D.
University of Maryland
Joint Program for Survey Methodology
1218 Lefrak Hall
College Park MD 20742
(301)-405-0932
FAX: (301) 314-7912

        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST