SPSS Statistics

 View Only
Expand all | Collapse all

Uneven rendering of points for evenly spaced data on panelled Dot Plot

  • 1.  Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue March 26, 2024 01:28 PM
    Edited by Kirill Orlov Tue March 26, 2024 01:31 PM

    There is an alarming feature of (panelled) dot plot in SPSS. Points of continuous-data cases that are all distinct and are equally-spaced - are rendered non-uniformly on the dot-plot. This is dangerous, showing incorrect data pattern.

    In addition to the example syntax, I am appending a pair of pictures as well.

    *Have a dataset with 10 cases.
    *Create some equally-spaced continuous data.
    *As an example, we will create Prorortion Estimate values of the 10 different values of x.
    compute x= uniform(1).
    RANK VARIABLES= x (A) /RFRACTION into FracRank /PRINT=NO /TIES=MEAN.
    RANK VARIABLES= x (A) /PROPORTION into rankitPE /PRINT=NO /TIES=MEAN /FRACTION=rankit.
    RANK VARIABLES= x (A) /PROPORTION into BlomPE /PRINT=NO /TIES=MEAN /FRACTION=blom.
    RANK VARIABLES= x (A) /PROPORTION into TukeyPE /PRINT=NO /TIES=MEAN /FRACTION=tukey.
    RANK VARIABLES= x (A) /PROPORTION into VWPE /PRINT=NO /TIES=MEAN /FRACTION=vw.
    VARSTOCASES
      /ID=id
      /MAKE trans1 FROM FracRank rankitPE BlomPE TukeyPE VWPE
      /INDEX=Index1(trans1) 
      /KEEP=
      /NULL=KEEP.

    *--NOW BUILD THE PLOT (it is the panelled dot-plot)--.
    * Legacy dot-plot graph (asymmetric). Uneven spacing is seen.
    XGRAPH CHART=[POINT] BY trans1[s]
      /DISPLAY DOT= asymmetric
      /PANEL ROWVAR=Index1 ROWOP=CROSS.
    * Or via Chart Builder (asymmetric). Uneven spacing is seen.
    GGRAPH
      /GRAPHDATASET NAME="graphdataset" VARIABLES=trans1 Index1 MISSING=LISTWISE REPORTMISSING=NO
      /GRAPHSPEC SOURCE=INLINE
      /FITLINE TOTAL=NO.
    BEGIN GPL
      SOURCE: s=userSource(id("graphdataset"))
      DATA: trans1=col(source(s), name("trans1"))
      DATA: Index1=col(source(s), name("Index1"), unit.category())
      COORD: rect(dim(1))
      GUIDE: axis(dim(1), label("Fractional Rank of x"))
      GUIDE: axis(dim(3), label("Index1"), opposite())
      ELEMENT: point.dodge.asymmetric(position(bin.dot(trans1*1*Index1)))
    END GPL.
    * Legacy dot-plot graph (flat). Correct, even spacing.
    XGRAPH CHART=[POINT] BY trans1[s]
      /DISPLAY DOT= flat
      /PANEL ROWVAR=Index1 ROWOP=CROSS.
    * Or via Chart Builder (flat). Uneven spacing is seen.
      GGRAPH
      /GRAPHDATASET NAME="graphdataset" VARIABLES=trans1 Index1 MISSING=LISTWISE REPORTMISSING=NO
      /GRAPHSPEC SOURCE=INLINE
      /FITLINE TOTAL=NO.
    BEGIN GPL
      SOURCE: s=userSource(id("graphdataset"))
      DATA: trans1=col(source(s), name("trans1"))
      DATA: Index1=col(source(s), name("Index1"), unit.category())
      COORD: rect(dim(1))
      GUIDE: axis(dim(1), label("Fractional Rank of x"))
      GUIDE: axis(dim(3), label("Index1"), opposite())
      ELEMENT: point(position(bin.dot(trans1*1*Index1)))
    END GPL.

    Only the "flat" layout on the XGRAPH plot gave the correct rendering of poins. In "asymmetric" layout, both XGRAPH and GGRAPH showed it wrong. Given that asymmetric layout is the default in dot-plot in SPSS, that is a matter of strong concern.



    ------------------------------
    Kirill Orlov
    ------------------------------



  • 2.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Thu March 28, 2024 04:29 PM

    I would much appreciate someone from SPSS team to answer or comment on my topic.



    ------------------------------
    Kirill Orlov
    ------------------------------



  • 3.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Fri March 29, 2024 08:19 AM

    Hi @Kirill Orlov

    I have relayed your question on to our statisticians. It is a national holiday in India today so we can expect a reply around Monday.

    Best,



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------



  • 4.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 01:05 AM

    Hi Kirill,

    Thank you for bringing this to our attention.To look into this further and ensure the best possible experience, we've filed defect #7628 for the uneven rendering issue. We appreciate your patience and understanding.



    ------------------------------
    Aruna Saraswathy
    Statistician
    SPSS Statistics
    IBM
    ------------------------------



  • 5.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 03:06 AM

    Thank you for this. Please leave me the link here to the page of the issue #7628 that has been created.



    ------------------------------
    Kirill Orlov
    ------------------------------



  • 6.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 03:14 AM

    Sure, Please find the page here, https://github.ibm.com/SPSS/stats_java_ui/issues/7628



    ------------------------------
    Aruna Saraswathy
    Statistician
    SPSS Statistics
    IBM
    ------------------------------



  • 7.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 03:56 AM

    How do I get there? It asks for some "w3id and password", but what's that? (I've got only my IBMid login, if I remember right.)



    ------------------------------
    Kirill Orlov
    ------------------------------



  • 8.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 06:22 AM

    Yes its accessible only for IBMers internal..we sure would keep you posted on the updates after triaging and prioritising.



    ------------------------------
    Aruna Saraswathy
    Statistician
    SPSS Statistics
    IBM
    ------------------------------



  • 9.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 06:43 AM

    All right, Aruna. Have a nice day.



    ------------------------------
    Kirill Orlov
    ------------------------------



  • 10.  RE: Uneven rendering of points for evenly spaced data on panelled Dot Plot

    Posted Tue April 02, 2024 10:20 AM

    @Kirill Orlov, Aruna is correct that our defect tracking system is internal, but I have added a note to the defect requesting that you be contacted once we have a fix in hand. We will use the two email addresses from your web page: https://www.spsstools.net/en/macros/KO-aboutauthor/. 

    Best regards,

    Curtis



    ------------------------------
    Curtis Browning
    SPSS Statistics Architect
    ------------------------------