Scatter plot colored categories

120 views
Skip to first unread message

Michael Beddo

unread,
Feb 10, 2013, 9:41:05 PM2/10/13
to tins...@googlegroups.com
I teach a statistics class and have recently acquired a TI nspire CX CAS calculator. Several of my students have one as well, though they don't know how to use it very much. I am learning so I can teach them.

We are discussing lurking variables in class. I have a data set in a spreadsheet in three columns: x, y, and z. The z value is a category with two values. I plot y vs x in a scatter plot where there appears to be a correlation, but what I want to do is change the color of points so that z=1 points are a different color than z=2 points, illustrating that the correlation is destroyed when the lurking variable z is controlled for.

I can't figure out how to do this. I tried splitting up into two lists but it seems I can't combine two scatter plots into one.

Any ideas?

Thanks

Mike

alcoonslists

unread,
Feb 10, 2013, 11:40:27 PM2/10/13
to tins...@googlegroups.com
Mike,

Divide your points this way:

Variable X - List all x values once
Variable Y1 - List those values for the given x for z=1
Variable Y2 - List those values for the given x for z=2
[Note: You can have both a Y1 and Y2 for a given x or just one of them]

Plot Y1 versus X

MENU/Plot Properties/Add Y Variable/Y2
Plot will have different colors for Y1 and Y2

This will at least get you the plot you want, but may not leave the data in the form you want for other things.

Hope this helps,

Al
-------------------------
Albert Coons
aco...@bbns.org
Buckingham Browne & Nichols School
Gerry's Landing Road
Cambridge, MA 02138
(617) 800-2264

AP Statistics Web Site: www.bbn-school.org/us/math/ap_stats
> --
> --
> To post to this group, send email to tins...@googlegroups.com
> To unsubscribe send email to tinspire+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com.au/group/tinspire?hl=en-GB?hl=en-GB
> The tns documents shared by group members are archived at
> https://sites.google.com/site/tinspiregroup/classroom-news/welcome-abouttime
>
> ---
> You received this message because you are subscribed to the Google Groups "tinspire" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Michael Beddo

unread,
Feb 11, 2013, 10:16:52 AM2/11/13
to tins...@googlegroups.com
Worked great! Thanks.
Reply all
Reply to author
Forward
0 new messages