|
Dear List
I would like to manipulate the size of box plots, that is, to thicken them. I tried the size function but was not successful. Does anybody have an idea how to do this without using the template command? Here an example using the employee data.sav: GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES= salary jobcat gender MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: jobcat=col(source(s), name("jobcat"), unit.category()) DATA: gender=col(source(s), name("gender"), unit.category()) DATA: salary=col(source(s), name("salary")) SCALE: cat(aesthetic(aesthetic.color.interior), map(("1",color.red), ("2",color.blue) )) COORD: rect(dim(1,2), cluster(3)) GUIDE: legend(aesthetic(aesthetic.color), label("Gender")) GUIDE: axis(dim(2), label("Salary")) GUIDE: axis(dim(3), label("Job Category")) ELEMENT: schema(position(bin.quantile.letter(gender*salary*jobcat)), color(gender), size(size."30%")) END GPL. Thanks in advance, Christian ******************************* la volta statistics Christian Schmidhauser, Dr.phil.II Weinbergstrasse 108 Ch-8006 Zürich Tel: +41 (043) 233 98 01 Fax: +41 (043) 233 98 02 email: mailto:[hidden email] internet: http://www.lavolta.ch/ |
|
Do you want to make them wider? AFAIK, you can't control this with GPL and need to apply a saved chart template to do it. Since I can't send a file via the list serve, here is the text of one that works. The important part of this is the setStyle clustered subtype.
Copy it, save it as .sgt file and then reference it with the template subcommand. I know that somebody mail system will swallow up the XML and quarantine as being a security risk, so if you don't see this, send me a note and I'll zip it up to send.: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <template SPSS-Version="2.2" date="2007-05-16" description="" selectPath="21 " xmlns="http://xml.spss.com/spss/visualization" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xml.spss.com/spss/visualization http://xml.spss.com/spss/visualization/vizml-template-3.0.xsd"> <setStyle subtype="medianStyle" type="schema"> <style color="#000000" stroke-linecap="butt" stroke-width="1.5pt" visible="true"/> </setStyle> <setStyle subtype="outlierStyle" type="schema"> <style color="transparent" color2="#000000" size="5pt" symbol="circle" visible="true"/> </setStyle> <setStyle subtype="hingeStyle" type="schema"> <style color="#d3ce97" color2="#000000" visible="true"/> </setStyle> <setStyle subtype="extremeStyle" type="schema"> <style color="#000000" color2="#000000" size="5pt" symbol="flower" visible="true"/> </setStyle> <setStyle subtype="clustered" type="schema"> <style color="#d3ce97" color2="#000000" fill-opacity="1.0" opacity="1.0" pattern="0" size="100%" stroke-width="0.75pt" symbol="ibeam" visible="true" width="85%"/> </setStyle> </template> -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of la volta statistics Sent: Wednesday, May 16, 2007 8:15 AM To: [hidden email] Subject: GPL: how to change size of boxplots? Dear List I would like to manipulate the size of box plots, that is, to thicken them. I tried the size function but was not successful. Does anybody have an idea how to do this without using the template command? Here an example using the employee data.sav: GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES= salary jobcat gender MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: jobcat=col(source(s), name("jobcat"), unit.category()) DATA: gender=col(source(s), name("gender"), unit.category()) DATA: salary=col(source(s), name("salary")) SCALE: cat(aesthetic(aesthetic.color.interior), map(("1",color.red), ("2",color.blue) )) COORD: rect(dim(1,2), cluster(3)) GUIDE: legend(aesthetic(aesthetic.color), label("Gender")) GUIDE: axis(dim(2), label("Salary")) GUIDE: axis(dim(3), label("Job Category")) ELEMENT: schema(position(bin.quantile.letter(gender*salary*jobcat)), color(gender), size(size."30%")) END GPL. Thanks in advance, Christian ******************************* la volta statistics Christian Schmidhauser, Dr.phil.II Weinbergstrasse 108 Ch-8006 Zürich Tel: +41 (043) 233 98 01 Fax: +41 (043) 233 98 02 email: mailto:[hidden email] internet: http://www.lavolta.ch/ |
|
In reply to this post by la volta statistics
I just sent an innocent message to the list and got nailed with 25 'Sorry
I'm out of the office' autoreplys. Please, please, PLEASE unsubscriber before you go on vacation this summer. *************************************************************************************************************************************************************** Mark A. Davenport Ph.D. Senior Research Analyst Office of Institutional Research The University of North Carolina at Greensboro 336.256.0395 [hidden email] 'An approximate answer to the right question is worth a good deal more than an exact answer to an approximate question.' --a paraphrase of J. W. Tukey (1962) la volta statistics <[hidden email]> Sent by: "SPSSX(r) Discussion" <[hidden email]> 05/16/2007 10:30 AM Please respond to la volta statistics <[hidden email]> To [hidden email] cc Subject GPL: how to change size of boxplots? Dear List I would like to manipulate the size of box plots, that is, to thicken them. I tried the size function but was not successful. Does anybody have an idea how to do this without using the template command? Here an example using the employee data.sav: GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES= salary jobcat gender MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: jobcat=col(source(s), name("jobcat"), unit.category()) DATA: gender=col(source(s), name("gender"), unit.category()) DATA: salary=col(source(s), name("salary")) SCALE: cat(aesthetic(aesthetic.color.interior), map(("1",color.red), ("2",color.blue) )) COORD: rect(dim(1,2), cluster(3)) GUIDE: legend(aesthetic(aesthetic.color), label("Gender")) GUIDE: axis(dim(2), label("Salary")) GUIDE: axis(dim(3), label("Job Category")) ELEMENT: schema(position(bin.quantile.letter(gender*salary*jobcat)), color(gender), size(size."30%")) END GPL. Thanks in advance, Christian ******************************* la volta statistics Christian Schmidhauser, Dr.phil.II Weinbergstrasse 108 Ch-8006 Zürich Tel: +41 (043) 233 98 01 Fax: +41 (043) 233 98 02 email: mailto:[hidden email] internet: http://www.lavolta.ch/ |
|
At 11:12 AM 5/16/2007, Mark A Davenport MADAVENP wrote:
>I just sent an innocent message to the list and got nailed with 25 >'Sorry I'm out of the office' autoreplys. Sigh. Known hazard, not just in the summer. If you post more often, at least you get fewer for each posting. I've got aggressive E-mail filters that at least shunt most of them to a separate notebook I keep for that purpose. ("Aggressive": I have *34* filters, for different forms I've seen for that "out of office" messages. Bless anybody who could define, and encourage use of, a standard to make such messages unambiguously identifiable! At least, standard within each language.) >Please, please, PLEASE unsubscribe before you go on vacation this >summer. It's a good idea, but I suggest going NOMAIL, which is less drastic than unsubscribing. You don't need to respond to a confirmation message when you start mail again, and you retain subscriber's posting privileges. (SPSSX-L accepts postings from accounts that aren't subscribed. But, as list administrator Jean Snow has just reminded us, such postings are reviewed before they are sent to the list. That's a delay for you, and a nuisance for the administrator.) To go 'nomail', send E-mail to [hidden email] with (only) the line SET SPSSX-L NOMAIL To restart, send a message to [hidden email] with the line (surprise!) SET SPSSX-L MAIL Finally, you can get the file documenting these commands (and many more) by sending [hidden email] a message with the line INFO REFCARD Happy listing to all! Richard |
| Free forum by Nabble | Edit this page |
