s-news
[Top] [All Lists]

barchart in Trellis

To: s-news@lists.biostat.wustl.edu
Subject: barchart in Trellis
From: "Data Analytics Corp." <dataanalytics@earthlink.net>
Date: Mon, 13 Jul 2009 09:03:01 -0400
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=PgMRLwqvZUgKkUjuvkDZKWolDK8sxH4JlIlnemSAxFu4N5K3vHGLpTnv2ZoP39fT; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)
Hi,

I have a simple question. I drew a bar chart in trellis that I would like to redo. There are six panels. Each panel has six bars representing six food products. The panels are the attributes of the food products: smell, sweetness, etc. The scale in each panel ranges from -60% to +20% and represent a net score - basically the percentage of people favoring the attribute or not. A negative score means more people disliked the attribute; positive means more liked it. The bars all start from the left vertical axis making interpretation slightly challenging. I'd like to have the bars start in the center of each panel at the 0% point so that bars extending to the right clearly show positive percentages of people and those to the left clearly show negative ones. The command I used is

barchart(code ~ net | att, data == all.net, aspect = 1)

where code is for the product, net is for the percentage scores, and att is for the attributes.

Any suggestions?

Thanks,

Walt



--
________________________

Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
dataanalytics@earthlink.net
www.dataanalyticscorp.com


<Prev in Thread] Current Thread [Next in Thread>