SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 


#Analytics
#SPSSStatistics
#Analyticstools
 View Only
  • 1.  Seaborn within SPSS

    Posted 11/21/22 10:54 AM
    Is there a way to import Seaborn into SPSS to create visuals.  Something like this?  If so does anyone have examples?  Thanks - Art

    BEGIN PROGRAM python3.
    import os
    import shutil
    import glob
    import spss
    import seaborn as sns
    # ad hoc
    try:

    except:
    end program.

    ------------------------------
    Art Jack
    ------------------------------

    #SPSSStatistics


  • 2.  RE: Seaborn within SPSS

    Posted 11/21/22 12:53 PM
    That's an interesting question.  I have not tried it, but the relevant api is

    CreateImageChartItem Method
    Returns an SpssOutputItem object for a new chart item associated with an external image. This allows you to insert an external image of type png, jpg, or gif into an output document. To insert the chart item into the output document, use the InsertChildItem method in the SpssHeaderItem class.

    There are also some apis meant for html text.  I don't know what they would do if they are given an html image.

    --