LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2002)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 7 Mar 2002 19:48:52 -0500
Reply-To:     Raynald Levesque <rlevesque@videotron.ca>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Raynald Levesque <rlevesque@videotron.ca>
Subject:      Re: graph question
In-Reply-To:  <200203070739.g277djf20685@listserv.cc.uga.edu>
Content-Type: text/plain; charset="US-ASCII"

Hi

This is one way:

INPUT PROGRAM. NUMERIC comp_01 TO comp_10(F8.0). VECTOR comp=comp_01 TO comp_10. LOOP cnt=1 TO 100. COMPUTE command=RND(UNIFORM(1)). LOOP i=1 TO 10. COMPUTE comp(i)=RND(UNIFORM(1)). END LOOP. END CASE. END LOOP. END FILE. END INPUT PROGRAM.

EXE. IGRAPH /VIEWNAME='Bar Chart' /X1 = VAR(category_set1) TYPE = CATEGORICAL /Y = VAR(value_set1) TYPE = SCALE /COLOR = VAR(command) TYPE = CATEGORICAL CLUSTER /COORDINATE = VERTICAL /COMBINE GROUP=VAR(category_set1) TYPE=CATEGORICAL 'Category' RESPONSE=VAR(value_set1) TYPE=SCALE 'Value' VAR (comp_01) 'comp_01' VAR(comp_02) 'comp_02' VAR(comp_03) 'comp_03' VAR(comp_04 ) 'comp_04' VAR(comp_05) 'comp_05' VAR(comp_06) 'comp_06' VAR(comp_07) 'comp_07' VAR(comp_08) 'comp_08' VAR(comp_09) 'comp_09' VAR(comp_10) 'comp_10' /X1LENGTH=3.0 /YLENGTH=3.0 /X2LENGTH=3.0 /CHARTLOOK='NONE' /CATORDER VAR(command) (ASCENDING VALUES OMITEMPTY) /BAR(MEAN) KEY=ON SHAPE = RECTANGLE BASELINE = AUTO.

Regards

Raynald Levesque rlevesque@videotron.ca Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Anja Langefeld Sent: March 7, 2002 3:10 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: graph question

Hello,

can anyone help me with this? syntax: GRAPH /BAR(GROUPED)=MEAN(comp_01) MEAN(comp_02) MEAN(comp_03) MEAN(comp_04) MEAN(comp_05) MEAN(comp_06) MEAN(comp_07) MEAN(comp_09) MEAN(comp_10) BY command /MISSING=LISTWISE REPORT.

this gives a grouped bar plot. command has two categories (yes, no) the plot now must be transposed (via clik on graph, series , transpose data). this will give a graph in wich command is the legend, and the variables are the categories. Thats the graph I want, however I want to do it automatically, so not have to doubleclick on graph > series > transpose data. Is that possible? I've tried to make a template and use that, but spss does not take the transpose with the template. Does anyone know a solution to this?

greetings anja Anja Langefeld TNO Technische Menskunde Kampweg 5 Postbus 23 3769 ZG Soesterberg Netherlands Tel. 0346 356 465 Fax. 0346 353 977


Back to: Top of message | Previous page | Main SPSSX-L page