Running R 1.8.1 on a Windows machine In dotchart, I would like to shrink the labels on the tick marks (that is, the numbers) without shrinking anything else. I could not find this in either the Rhelp archives or in ?dotchart, which recmmends cex to avoid 'label overlap', but cex shrinks all the characters in the plot. Is there a way to do this? Thanks Peter Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research National Development and Research Institutes 71 W. 23rd St www.peterflom.com New York, NY 10010 (212) 845-4485 (voice) (917) 438-0894 (fax)
See cex.axis and other cex.* arguments to par() in ?par. For example: > data(VADeaths) > dotchart(VADeaths, main = "Death Rates in Virginia - 1940") > par(cex.axis = .6) > dotchart(VADeaths, main = "Death Rates in Virginia - 1940") hope this helps, Chuck Cleland Peter Flom wrote:> Running R 1.8.1 on a Windows machine > > In dotchart, I would like to shrink the labels on the tick marks (that > is, the numbers) without shrinking anything else. I could not find this > in either the Rhelp archives or in ?dotchart, which recmmends cex to > avoid 'label overlap', but cex shrinks all the characters in the plot. > > Is there a way to do this?-- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894
Thanks, this worked. I had tried fx.dotchart2(freqrelig[order(freqrelig)], label = levels(religfact)[order(freqrelig)], main = 'Religions among young adults in Bushwick \n (log scale)', xlab = 'Frequency', log = 'x', cex.axis = .7) which did nothing....... Peter>>> Chuck Cleland <ccleland at optonline.net> 6/9/2004 10:39:04 AM >>>See cex.axis and other cex.* arguments to par() in ?par. For example: > data(VADeaths) > dotchart(VADeaths, main = "Death Rates in Virginia - 1940") > par(cex.axis = .6) > dotchart(VADeaths, main = "Death Rates in Virginia - 1940") hope this helps, Chuck Cleland Peter Flom wrote:> Running R 1.8.1 on a Windows machine > > In dotchart, I would like to shrink the labels on the tick marks(that> is, the numbers) without shrinking anything else. I could not findthis> in either the Rhelp archives or in ?dotchart, which recmmends cex to > avoid 'label overlap', but cex shrinks all the characters in theplot.> > Is there a way to do this?-- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (732) 452-1424 (M, W, F) fax: (917) 438-0894
Peter Flom wrote:> Running R 1.8.1 on a Windows machine > > In dotchart, I would like to shrink the labels on the tick marks (that > is, the numbers) without shrinking anything else. I could not find this > in either the Rhelp archives or in ?dotchart, which recmmends cex to > avoid 'label overlap', but cex shrinks all the characters in the plot. > > Is there a way to do this? > > Thanks > > Peter > > Peter L. Flom, PhD > Assistant Director, Statistics and Data Analysis Core > Center for Drug Use and HIV Research > National Development and Research Institutes > 71 W. 23rd St > www.peterflom.com > New York, NY 10010 > (212) 845-4485 (voice) > (917) 438-0894 (fax)There are probably many ways, but one is to use dotchart2 in Hmisc, I think. Frank> > ______________________________________________ > R-help at 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 >-- Frank E Harrell Jr Professor and Chair School of Medicine Department of Biostatistics Vanderbilt University