Chart Templates

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Chart Templates

drfg2008
Would it be possible to use a chart template (.sgt) also in the Kaplan-Meier procedure (survival plot). And/ or is there any other way for automated formatting of the Survival Plot?

Same question for the One-Way ANOVA procedure means plot: how to format the plots (not manually).

Thx.
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Chart Templates

Andy W
You can use chart templates to format any chart. Some procedures allow you to specify a chart template on their plotting procedures, but if they don't it just uses the global template (which can be set in syntax if needed).

Within the template there are a few specific styles, for example in my V22 if you open up the chart template and search for "survival" you will see a few default element styles for the lines for what I believe are the KM plot. But, those just control the line types. Things like the background color, chart size, gridlines, etc. are controlled by the global template.

I do not believe there are any defaults like this for one-way ANOVA, but I imagine you could set the default for error bar styles someone in the chart template.
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: Chart Templates

Andy W
In reply to this post by drfg2008
Also FYI Marta Garcia-Granero has a nice template for survival curves, see http://gjyp.nl/marta/Kalbfleisch&Prentice95%25CI.SPS

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<template SPSS-Version="2.2" selectPath="12 47 "
 xmlns="http://xml.spss.com/spss/visualization"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://xml.spss.com/spss/visualization
 http://xml.spss.com/spss/visualization/vizml-template-3.0.xsd">
        <setAxisMargin categorical="false" lowerMargin="0%" role="x" upperMargin="5%"/>
        <setAxisMargin categorical="false" lowerMargin="0%" role="y" upperMargin="5%"/>
        <addFrame count="1" styleOnly="true" type="visualization">
                <style color="#ffffff" color2="transparent" number="0" visible="true"/>
                <style font-family="SansSerif" font-size="8pt" number="1" pattern="0" stroke-linecap="butt" text-fit="true" visible="true"/>
        </addFrame>
        <addFrame count="1" styleOnly="true" type="graph">
                <style color="transparent" color2="transparent" visible="true"/>
                <style color="#ffffff" color2="transparent" number="1" visible="true"/>
        </addFrame>
        <addFrame count="1" styleOnly="true" type="title">
                <style color="transparent" color2="transparent" visible="true"/>
        </addFrame>
</template>
Andy W
apwheele@gmail.com
http://andrewpwheeler.wordpress.com/
Reply | Threaded
Open this post in threaded view
|

Re: Chart Templates

drfg2008
Thx!

How can you set - change - the default template in Syntax?
Would you have the Syntax command.
Dr. Frank Gaeth

Reply | Threaded
Open this post in threaded view
|

Re: Chart Templates

David Marso
Administrator
Hint:  It is  SET command ;-)
Go to Options on the menu, diddle the chart template setting and study the resulting echo in the output window.  Sometimes experimentation can result in insight.
---
drfg2008 wrote
Thx!

How can you set - change - the default template in Syntax?
Would you have the Syntax command.
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Chart Templates

drfg2008
SET CTemplate='C:\....sgt'.

SET CTemplate=None.

thx.
Dr. Frank Gaeth