PC Review


Reply
Thread Tools Rate Thread

individual data points and group mean

 
 
jaime
Guest
Posts: n/a
 
      13th Jul 2008
Hi - Need help creating a bar graph that shows group mean and
individual data points. I work in psychology - I have data from two
groups (a control group & patient group). I want to show results on a
bar graph - one bar for control mean and one bar for patient mean -
but then within the bar for patients - I want individual data points
for each patient.
 
Reply With Quote
 
 
 
 
Del Cotter
Guest
Posts: n/a
 
      14th Jul 2008
On Sun, 13 Jul 2008, in microsoft.public.excel.charting,
jaime <(E-Mail Removed)> said:
>Hi - Need help creating a bar graph that shows group mean and
>individual data points. I work in psychology - I have data from two
>groups (a control group & patient group). I want to show results on a
>bar graph - one bar for control mean and one bar for patient mean -
>but then within the bar for patients - I want individual data points
>for each patient.


Good for you for wanting to show the distribution as well as the
aggregate measures. However, Excel doesn't make it easy. To your bar
series showing the means, add a scatter series, using as X values the
number of the bars from left to right: "1" for points intended to place
with the first bar, "2" for points on the second bar, etc.

Having Paste Special-ed the data in and changed the Chart Type of the
series from Column to XY (Scatter), the data will be on Secondary X and
Y axes. Format the secondary Y axis so it matches the first, and the
Secondary X axis so it runs from a minimum of 0.5 to the number of bars
plus 0.5. e.g, if you have two bars, the scatter X axis goes from
0.5-2.5; if six bars, the scatter x axis goes from 0.5-6.5; and so on.

Now you should have a scatter of points (your patients) overlaid on bars
(the average of all patients).

--
Del Cotter
NB Personal replies to this post will send email to (E-Mail Removed),
which goes to a spam folder-- please send your email to del3 instead.
 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      14th Jul 2008
It's easier than that.

Make a column chart with your two categories and two average values.

Put your actual values in one column, and in the column to the left of this
put either 1 or 2, depending which category it corresponds to. Copy this
data, select the chart, use Paste Special to add the data as a new series.

Select this added series (another column series with too many columns),
right click on it, choose Chart Type, and change it to an XY type. Then
assign this series to the primary axis, same as the initial column series.
Excel puts the XY data onto the primary axes without requiring you to
maintain two sets of axes.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Del Cotter" <(E-Mail Removed)> wrote in message
news:NvZ+(E-Mail Removed)...
> On Sun, 13 Jul 2008, in microsoft.public.excel.charting,
> jaime <(E-Mail Removed)> said:
>>Hi - Need help creating a bar graph that shows group mean and
>>individual data points. I work in psychology - I have data from two
>>groups (a control group & patient group). I want to show results on a
>>bar graph - one bar for control mean and one bar for patient mean -
>>but then within the bar for patients - I want individual data points
>>for each patient.

>
> Good for you for wanting to show the distribution as well as the aggregate
> measures. However, Excel doesn't make it easy. To your bar series showing
> the means, add a scatter series, using as X values the number of the bars
> from left to right: "1" for points intended to place with the first bar,
> "2" for points on the second bar, etc.
>
> Having Paste Special-ed the data in and changed the Chart Type of the
> series from Column to XY (Scatter), the data will be on Secondary X and Y
> axes. Format the secondary Y axis so it matches the first, and the
> Secondary X axis so it runs from a minimum of 0.5 to the number of bars
> plus 0.5. e.g, if you have two bars, the scatter X axis goes from 0.5-2.5;
> if six bars, the scatter x axis goes from 0.5-6.5; and so on.
>
> Now you should have a scatter of points (your patients) overlaid on bars
> (the average of all patients).
>
> --
> Del Cotter
> NB Personal replies to this post will send email to
> (E-Mail Removed),
> which goes to a spam folder-- please send your email to del3 instead.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Add Error Bars for individual data points! Smirkus Microsoft Excel Charting 1 29th Aug 2009 05:52 AM
How do I specify min/max error bars for individual data points? =?Utf-8?B?anZpdHRlcnM=?= Microsoft Excel Charting 1 11th Jun 2007 05:28 PM
add individual data points to a bar chart of averages =?Utf-8?B?bGVub3M=?= Microsoft Excel Charting 2 31st May 2007 09:55 AM
RE: Gathering data - individual points for a single topic Darin Kramer Microsoft Excel Programming 0 24th Jan 2007 05:18 PM
Editting individual data points on a chart programmatically =?Utf-8?B?QmxvY2tOaW5qYQ==?= Microsoft Access VBA Modules 0 27th Dec 2005 06:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:24 AM.