GGRAPH GPL Language to create a graph with multiple variables using the same category

121 Views Asked by At

Good Morning more advanced users of SPSS and R!

Both SPSS and R run their advanced data visualizations using GPL (Graphics Production Language). I happen to be using SPSS, but I suspect an R user may have an answer.

I have five categorical variables (a, b, c, d, e) each with three identical levels (1, 2, 3).

My goal is to create one graph that either stacks my variables by category:

Y axis: percent

X axis: a1b1c1d1e1 a2b2c2d2e2 a3b3c3d3e3

OR even more valuable would be simply to only include the one category that is actually interesting for comparison:

Y axis: percent

X axis: a2 b2 c2 d2 e2

I can kind of do this by creating a custom table that summarizes the percent totals for each variable (column percents) and then selecting the cells in the output table and right clicking to create a bar graph. However, I like the customization I can do in the GPL such as adding labels of the percent values, easy adjustment of titles and the ability to easily repeat the effort at a later time.

I'm re-reading a GPL SPSS manual but it came from an odd source and not IBM's website so it may be outdated. However, in case you do this in your work, I thought I'd reach out for a suggestion.

Too bad I can't just use my crayons!

0

There are 0 best solutions below