<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Differ axis points in SGPANEL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806493#M317757</link>
    <description>&lt;P&gt;Maybe you need this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgscatter data=sashelp.iris;
  title "Iris Data: Length and Width";
  compare x=(sepallength petallength)
          y=(sepalwidth petalwidth)
          / group=species join;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Apr 2022 12:54:38 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-04-07T12:54:38Z</dc:date>
    <item>
      <title>Differ axis points in SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806354#M317684</link>
      <description>&lt;P&gt;I want to have the following timepoints labelled: Days 1, 6, 8, day of treatment, day of treatment plus 7 with non-uniform spacing.&lt;/P&gt;
&lt;P&gt;I have the following code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	title1 "Subject &amp;amp;id.";
	proc sgpanel data= &amp;amp;dsn. noautolegend;
	 where usubjid= "&amp;amp;id." and paramcd = "&amp;amp;param.";
		panelby aphase / novarname columns= 4;
		series x= stdy y= chg;
		scatter x= stdy y= chg;
		styleattrs
		datacontrastcolors= (red blue orange green)
		datalinepatterns= (solid);
		
		colaxis min= 1 max= 18 values= (1 6 8 &amp;amp;T. &amp;amp;T7.) valuesdisplay= ("1" "6" "8" "T" "T+7") label= "Actual CHMI Day";
		rowaxis min= 0 max= 50 values= (0 to 50 by 5) label= "Antibody Reactivity (Baseline-adjusted OD^{unicode '2082'x}410)";
		
	run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My problem is not everyone was treated on the same day for each CHMI. Is there a way to reference a specific variable within the dataset to use in the axis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data have:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input usubjid $ phase $ stdy paramcd $ chg trtdy1 trtdy2 @@;
 cards;
A	CHMI1	1	IgG 	-0.794	.	.
A	CHMI1	2	IgG 	-0.854	.	.
A	CHMI1	3	IgG 	-0.822	.	.
A	CHMI1	4	IgG 	-0.724	.	.
A	CHMI1	5	IgG 	-0.765	.	.
A	CHMI1	6	IgG 	-0.721	.	.
A	CHMI1	7	IgG 	-0.605	.	.
A	CHMI1	8	IgG 	-0.557	.	.
A	CHMI1	9	IgG 	-0.421	.	.
A	CHMI2	1	IgG 	0.489	.	.
A	CHMI2	2	IgG 	0.211	.	.
A	CHMI2	3	IgG 	0.089	.	.
A	CHMI2	4	IgG 	-0.121	4	11
A	CHMI2	5	IgG 	-0.150	4	11
A	CHMI2	6	IgG 	-0.268	4	11
A	CHMI2	7	IgG 	-0.279	4	11
A	CHMI2	8	IgG 	-0.226	4	11
A	CHMI2	9	IgG 	-0.112	4	11
A	CHMI2	10	IgG 	-0.025	4	11
A	CHMI2	11	IgG 	-0.079	4	11
A	CHMI3	1	IgG 	-0.014	9	.
A	CHMI3	2	IgG 	-0.028	9	.
A	CHMI3	3	IgG 	-0.112	9	.
A	CHMI3	4	IgG 	-0.186	9	.
A	CHMI3	5	IgG 	-0.101	9	.
A	CHMI3	6	IgG 	-0.026	9	.
A	CHMI3	7	IgG 	0.082	9	.
A	CHMI3	8	IgG 	0.052	9	.
A	CHMI3	9	IgG 	0.106	9	.
A	CHMI3	10	IgG 	0.044	9	.
A	CHMI3	11	IgG 	-0.025	9	.
A	CHMI3	12	IgG 	-0.111	9	.
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 17:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806354#M317684</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2022-04-06T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Differ axis points in SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806389#M317695</link>
      <description>&lt;P&gt;Are you trying to force specific values to become new coordinates for the plot? Which variables to which value on which row?&lt;/P&gt;
&lt;P&gt;With a series plot use of the actual value just means that you may have "bends" in the line in places that don't match the axis tick marks. Nothing wrong with that generally. Series plots mean that the interval between points is important to the presentation, even when irregularly spaced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you expect all of the values to align with specific tick marks you have to tell us which ones aren't correct and what they need to be changed to or a rule of some sort. It may mean that perhaps you don't actually want a series at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You provide code with many macro variables and don't provide any example values. So we can't test your actual values for anything.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806389#M317695</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-06T19:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Differ axis points in SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806392#M317696</link>
      <description>&lt;P&gt;Based on the example figure I was given, we want the bends at the specified time points. T is the treatment day and T+7 is seven days after treatment day, also represented by trtdy1 and trtdy2 in my mock dataset, respectively.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariko5797_0-1649274447038.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70176i4C9D7F14E01D6C09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariko5797_0-1649274447038.png" alt="mariko5797_0-1649274447038.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806392#M317696</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2022-04-06T19:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Differ axis points in SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806493#M317757</link>
      <description>&lt;P&gt;Maybe you need this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgscatter data=sashelp.iris;
  title "Iris Data: Length and Width";
  compare x=(sepallength petallength)
          y=(sepalwidth petalwidth)
          / group=species join;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 12:54:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806493#M317757</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-07T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Differ axis points in SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806494#M317758</link>
      <description>&lt;PRE&gt;proc sgscatter data=sashelp.iris(where=(species="Virginica"));
  title "Multi-Celled Spline Curve for Species Virginica";
  plot (sepallength sepalwidth)*(petallength petalwidth)
       / join;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 12:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/806494#M317758</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-07T12:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Differ axis points in SGPANEL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/807874#M318557</link>
      <description>Update: I ended up creating individual plots and placing them side-by-side using ODS Graphics Designer tool + PROC SGDESIGN</description>
      <pubDate>Thu, 14 Apr 2022 16:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Differ-axis-points-in-SGPANEL/m-p/807874#M318557</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2022-04-14T16:54:21Z</dc:date>
    </item>
  </channel>
</rss>

