[R] Dotplot x-axis

Michael Kubovy kubovy at virginia.edu
Fri Apr 14 15:29:02 CEST 2006


Here's a small dataset:

type <- c('hierarchical','partial','single','complete','single 
+hierarchical','single+partial','partial+hierarchical','single+partial 
+hierarchical')
freq <- c(1455,729,688,65,29,28,16,17)
lodds <- log(freq/(3027 - freq))
dotplot(type~lodds)

I would like to have the x-axis have ticks at nice, close to equally- 
spaced values, of the proportions rather than at round log-odds  
values, which appear as -5:0. For example: perhaps have ticks at c 
(0.007, 0.02, 0.05, 0.12, 0.27, 0.5), which are approximate values of  
exp(-5:0)/(1+exp(-5:0))

Advice?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/




More information about the R-help mailing list