All,
I am graphing using two panel variables to plot a 2 x 5 grid of 10 graphs, all with a common x-axis range. However, the y-axis limits need to vary substantially between the panel rows. Is there a GPL command that allows either automatic or manual adjustment of y-axis limits for each panel or row? Windoze 10, SPSS 27. Thanks Russell -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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 |
No unfortunately this is not possible -- at least not easily. (For reference
for folks, the R library ggplot has a scales='free_y' option that would accomplish what the OP is asking.) The GPL reference guide has an example of having a line graph with varying Y axes. I'm not confident that it could be extended to your stated example though. And you can build your own subplots using BEGIN/END statements inside GPL, see https://andrewpwheeler.com/2017/02/07/side-by-side-charts-in-spss/. But that would be quite cumbersome. ----- Andy W [hidden email] http://andrewpwheeler.wordpress.com/ -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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 |
In reply to this post by rustyconc
The SPLOM would normally scale the axes automatically, so the scales will usually be appropriate even if the ranges are very different. As Andy said, you could construct a composite graph with begin/end blocks, but it is rather painful to get everything aligned nicely doing that. You might find that one of these graphics extension commands, which are available via Extensions > Extension Hub, would suit your purpose. STATS REGRESS PLOT constructs a set of panel-like plots of two sets of variables. It was designed to help in choosing regressors or functional forms for a set of dependent variables, so each plot type depends on the measurement level of the variables. STATS SUBGROUP PLOTS constructs a set of panel-like plots of a group of variables by subsets of the cases defined by a single variable. Each plot shows the distribution of a variable and the overall sample distribution. Neither of these provide control of the y axis range, however. They use automatic scaling. REGRESS PLOT uses the begin/end GPL construct that Andy mentioned, so you could look at the syntax it generates to see how that works. On Fri, Jan 29, 2021 at 8:17 AM rustyconc <[hidden email]> wrote: All, |
Another nice approach I've used for exploratory data analysis that would
somewhat fit here is to use SPLIT FILE. It will generate individuals plots for each subgroup, and you can use the default scaling for the X/Y axes to have them vary. (This isn't so nice though if you need the nice small multiple for a presentation.) ----- Andy W [hidden email] http://andrewpwheeler.wordpress.com/ -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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 |
All,
Thanks for the rapid responses. We make extensive use of split file already, but, as you suggest, now that we are moving towards publication figs, a smaller paneled approach will be better. It does feel like the switch to R to use ggplot y_axis free is the path of least resistance now we know there's no shortcut in SPSS. Cheers Russell -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== 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 |