Fw: [SPSSX-L] need help creating violin plots

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fw: [SPSSX-L] need help creating violin plots

Jon K Peck

To add to the discussion yesterday on the list, while Statistics does not have a built-in violin plot, it is possible to construct a template for GraphBoard, and add this chart type to the Graphboard gallery available from the Graphs menu in Statistics.

I can't post the chart here, but I have posted an example with a little discussion in the Visualization forum on the SPSS Community (www.ibm.com/developerworks/spssdevcentral).  I regret that I can't post the template at this time.

Jon Peck
Senior Software Engineer, IBM
[hidden email]
312-651-3435



From:        "Cleland, Patricia (EDU)" <[hidden email]>
To:        [hidden email]
Date:        02/09/2011 12:38 PM
Subject:        [SPSSX-L] need help creating violin plots
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I have data on the % of clients who met a criterion (format f8.2) for approx 5000 clinics. The clinics are nested in about 100 Agencies and the Agencies are nested in 7 Regions. Each Clinic ‘belongs’ to only 1 Agency and each Agency is a member of only 1 Region.
 
Currently the Clinic and Agency ID’s are strings, but could easily be changed to numeric values if that makes any difference.
 
In order to show graphically the variation in % of clients who meet a criterion both within and among Agencies, I want to do violin plots separately for each Region, that is, 7 separate charts, showing the data for each Agency in the Region.  
 
I have some syntax from a colleague for producing violin plots but it’s based on using R as a stand-alone product rather than as an extension of SPSS. Since I’m a newbie at R, I don’t know what to modify in the syntax for use as an SPSS extension.
 
Any help would be appreciated.
 
Any suggestions for learning R, especially as an SPSS extension, would also be appreciated.
 
Thanks.

Pat