|
I have performance rating for various attributes for 2 brands as well as
the derived importance of the attributes. I want to make an xy graph of the 2 brands performance ratings but I want the marker to change size to indicate how important the attribute is. I have seen such graphs. Is it possible in SPSS [V 17] ? If not - what software does this ? -- Mark Webb +27 21 786 4379 +27 72 199 1000 Skype - webbmark [hidden email] ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
Yes, it is possible using GPL and there might even be an example in the help
GPL. Here's a really simple example: GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=gdp_cap babymort populatn MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: gdp_cap=col(source(s), name("gdp_cap")) DATA: babymort=col(source(s), name("babymort")) DATA: populatn=col(source(s), name("populatn")) GUIDE: axis(dim(1), label("Gross domestic product / capita")) GUIDE: axis(dim(2), label("Infant mortality (deaths per 1000 live births)")) GUIDE: legend(aesthetic(aesthetic.color), label("Population in Thousands")) SCALE: linear(aesthetic(aesthetic.size), aestheticMinimum(size."2px"), aestheticMaximum(size."15px")) ELEMENT: point(position(gdp_cap*babymort), size(populatn),color(color.black), transparency(transparency.".5") ) END GPL. Things to note: 1. the size(populatn) argument sets the size of the symbol. 2. By default, only color.exterior is set for the symbol. I've made it solid here by using color which sets both fill and border for polygons. 3. Because the fill is solid, you run the risk of larger symbols obscuring smaller ones. The transparency function lets the smaller ones bleed through. 4. The SCALE statement makes sure that the smallest symbol size is 2px and the largest is 15px. This is really important because by default you get teensy-weensy (that's a technical term) symbols. 5. The GUIDE statement provides a title for the legend to indicate what is controlling the size of the symbols. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb Sent: Thursday, August 27, 2009 8:17 AM To: [hidden email] Subject: Scatter [xy] graph with 3rd dimension represented as size of marker I have performance rating for various attributes for 2 brands as well as the derived importance of the attributes. I want to make an xy graph of the 2 brands performance ratings but I want the marker to change size to indicate how important the attribute is. I have seen such graphs. Is it possible in SPSS [V 17] ? If not - what software does this ? -- Mark Webb +27 21 786 4379 +27 72 199 1000 Skype - webbmark [hidden email] ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
