Skip to content
Back to formatted view

Raw Message

Message-ID: <FB9EE241-4797-469C-835E-CF0379B8828D@comcast.net>
Date: 2009-04-25T02:48:13Z
From: David Winsemius
Subject: dotplot: labeling coordinates for each point
In-Reply-To: <011f01c9c544$6a261b20$3e725160$@com.sg>

On Apr 24, 2009, at 9:23 PM, Qifei Zhu wrote:
> I used dotplot to draw a graph for a dataset with size of 100. Since  
> the
> x-axis are all texts, so they are mixed up and not readable. Is  
> there any
> way to make it readable or how can I add labels to all the points  
> with its
> (x,y) coordinates? Thanks for your help.

Look up information on the scales parameter and rotate your label text:

dotplot(decrease ~ treatment, OrchardSprays, groups = rowpos,  
scales=list(x=list(rot=60,  
labels=c("AAAA","","","DDDD","","FFFF","","") )))

David Winsemius, MD
Heritage Laboratories
West Hartford, CT