|
Dear SPSS users. I am doing a graph that tries to show the regional
differences (24 regions) for the production of hospital discharges in 6 categories (surgical procedures selected). I decided to use box-plot graph because it allows to show distribution on each category. The thing is that I can't put all labels (I mean all regions) in the graph, to show where each region locates in the line. The only labels shown are those for outliers or extreme values. Then, I decided to choose another type of graph called Drop-Line. This is nice too, because allows me to put all regions (all the marks are small circles under the line), but not so elegant as box-plot. My dream graph will be a combination of both, where I can have boxplot and all the circles showing each region. Is there a way to put all labels in box-plot? -- __________________________________________________________________ *Rodrigo Briceño* Project Manager Sanigest Internacional +506 22-91-12-00 ext. 113 * Oficina* *Costa Rica* +506 22-32-08-30 *Fax *+506 88-86-11-77* Celular** *[hidden email] <mailto:[hidden email]> www.sanigest.com <http://www.sanigest.com/> MSN: [hidden email] <mailto:[hidden email]> SKYPE: rbriceno1087 _____________________ This communication contains legal information which is privileged and confidential. It is for the exclusive use of the address and distribution, dissemination, copying or use by others is strictly prohibited. If you have received this communication by error, please delete the original message and e-mail us. Esta comunicación contiene información legal privilegiada y confidencial para el uso exclusivo del destinatario. La distribución, diseminación, copia u otro uso por terceras personas es estrictamente prohibida. Si usted ha recibido esta comunicación por error, le rogamos borrar el mensaje original y comunicárnoslo a esta misma dirección. ===================== 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 |
|
I can't imagine that the user would be able to see anything with 144 (24
regions*6 categories) labels on a plot. Am I misinterpreting what you want? Another approach might be to use region as a legend variable using a different color for each region. Use world95.sav (one of the sample files distributed with SPSS and compare the two charts from this syntax: * legend example. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=climate lifeexpf region MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: climate=col(source(s), name("climate"), unit.category()) DATA: lifeexpf=col(source(s), name("lifeexpf")) DATA: region=col(source(s), name("region"), unit.category()) GUIDE: axis(dim(1), label("Predominant climate")) GUIDE: axis(dim(2), label("Average female life expectancy")) GUIDE: legend(aesthetic(aesthetic.color), label("Region or economic group")) SCALE: linear(dim(2), include(0)) ELEMENT: line(position(summary.mean(climate*lifeexpf))) ELEMENT: point(position(summary.mean(climate*lifeexpf)), color(region)) END GPL. * label example. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=climate lifeexpf region MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: climate=col(source(s), name("climate"), unit.category()) DATA: lifeexpf=col(source(s), name("lifeexpf")) DATA: region=col(source(s), name("region"), unit.category()) GUIDE: axis(dim(1), label("Predominant climate")) GUIDE: axis(dim(2), label("Average female life expectancy")) SCALE: linear(dim(2), include(0)) ELEMENT: line(position(summary.mean(climate*lifeexpf))) ELEMENT: point(position(summary.mean(climate*lifeexpf)), split(region), label(region),color(color.black)) END GPL. Labels are problematic and in this example region has only 6 categories, not 24. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Rodrigo Briceño Sent: Tuesday, June 03, 2008 11:06 AM To: [hidden email] Subject: box-plot or similar Dear SPSS users. I am doing a graph that tries to show the regional differences (24 regions) for the production of hospital discharges in 6 categories (surgical procedures selected). I decided to use box-plot graph because it allows to show distribution on each category. The thing is that I can't put all labels (I mean all regions) in the graph, to show where each region locates in the line. The only labels shown are those for outliers or extreme values. Then, I decided to choose another type of graph called Drop-Line. This is nice too, because allows me to put all regions (all the marks are small circles under the line), but not so elegant as box-plot. My dream graph will be a combination of both, where I can have boxplot and all the circles showing each region. Is there a way to put all labels in box-plot? -- __________________________________________________________________ *Rodrigo Briceño* Project Manager Sanigest Internacional +506 22-91-12-00 ext. 113 * Oficina* *Costa Rica* +506 22-32-08-30 *Fax *+506 88-86-11-77* Celular** *[hidden email] <mailto:[hidden email]> www.sanigest.com <http://www.sanigest.com/> MSN: [hidden email] <mailto:[hidden email]> SKYPE: rbriceno1087 _____________________ This communication contains legal information which is privileged and confidential. It is for the exclusive use of the address and distribution, dissemination, copying or use by others is strictly prohibited. If you have received this communication by error, please delete the original message and e-mail us. Esta comunicación contiene información legal privilegiada y confidencial para el uso exclusivo del destinatario. La distribución, diseminación, copia u otro uso por terceras personas es estrictamente prohibida. Si usted ha recibido esta comunicación por error, le rogamos borrar el mensaje original y comunicárnoslo a esta misma dirección. ===================== 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 |
