<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.vsni.co.uk/forum/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Forum | VSN International</title>
 <link>http://www.vsni.co.uk/forum/</link>
 <description>The forum for discussion of VSN International software and general statistical issues</description>
 <language>en</language>
 <copyright>Copyright 2000-2010 VSN International Ltd.</copyright>
 <managingEditor>forumadmin@vsni.co.uk</managingEditor>
 <webMaster>forumadmin@vsni.co.uk</webMaster>
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
 <ttl>60</ttl>
 <lastBuildDate>Fri, 24 May 2013 06:17:02 GMT</lastBuildDate>
 <pubDate>Fri, 24 May 2013 06:17:02 GMT</pubDate>
 <image>
  <url>http://www.vsni.co.uk/common/images/asreml145.gif</url>
  <title>Forum | VSN International</title>
  <link>http://www.vsni.co.uk/forum/</link>
 </image>
 <item>
  <title>GenStat - RE: splines?</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3364#3364</link>
  <description>Carole
&lt;br /&gt;
I've found  Verbyla, Cullis, Kenward and Welham (Applied Statistics, 1999 'The analysis of designed experiments and longitudinal data by using smoothing splines') a good guide, with several examples and a few recipes (!).  One catch with splines is that you need to include a slope term as well as a spline term, to catch any overall changes in level with time
&lt;br /&gt;
Hope the reference helps
&lt;br /&gt;
Duncan
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate, distribute or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have received this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material pertaining to this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of the individual
&lt;br /&gt;
sender and may not represent those of The New Zealand Institute for Plant and
&lt;br /&gt;
Food Research Limited.
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1185</comments>
  <dc:creator>hedderleyd</dc:creator>
  <pubDate>Fri, 24 May 2013 03:31:35 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3364#3364</guid>
 </item>
 <item>
  <title>GenStat - splines?</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3363#3363</link>
  <description>I have data from a RCBD (8 tmts by 3 reps).  Measurements were taken at 6 time points.  The response over time is not linear and doesn't suit fitting any standard curves.  There is one rep which drops at one time point for all treatments (these plants were apparently more advanced in development and the growth stage may have caused this effect).
&lt;br /&gt;

&lt;br /&gt;
What is the best way to test for different treatment responses over time?
&lt;br /&gt;

&lt;br /&gt;
I've looked at fitting splines in REML but am not confident with choosing what to put where.  I'm thinking this might be the best approach??
&lt;br /&gt;

&lt;br /&gt;
I've also used the pol function in a regression model (and ANOVA) but I think I need something less constraining.
&lt;br /&gt;

&lt;br /&gt;
Any help would be greatly appreciated.
&lt;br /&gt;
Thank you
&lt;br /&gt;
Carole
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1185</comments>
  <dc:creator>Anonymous</dc:creator>
  <pubDate>Fri, 24 May 2013 02:55:59 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3363#3363</guid>
 </item>
 <item>
  <title>GenStat - RE: Death codes</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3362#3362</link>
  <description>Here's a variant that uses factors for the codes so that A00=100, A01=101, etc.  It also uses the Biometris procedure FPOINTER to set up scalars with the appropriate names and values, thus allowing the text form to be used in the RESTRICT statement.
&lt;br /&gt;

&lt;br /&gt;
Steve
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
text codes;val=!t(C00,C01,D22,C02,C03,C04,D01,D07)
&lt;br /&gt;

&lt;br /&gt;
vari [val=(100...799)] vcode
&lt;br /&gt;
txcon [tcode] !t(100(A,B,C,D,E,F,G)),vcode;dec=0;sk=0,1
&lt;br /&gt;
fpoint tcode;scpo  &amp;quot;biometris procedure&amp;quot;
&lt;br /&gt;
scal scpo[];#vcode
&lt;br /&gt;

&lt;br /&gt;
fact [lab=tcode;lev=vcode] fcodes;val=codes
&lt;br /&gt;

&lt;br /&gt;
print codes,fcodes
&lt;br /&gt;
rest fcodes;fcodes.ge.C03.and.fcodes.le.D10
&lt;br /&gt;
print fcodes
&lt;br /&gt;
rest fcodes
&lt;br /&gt;

&lt;br /&gt;
******************************************************************* 
&lt;br /&gt;
Steve Langton 
&lt;br /&gt;
Defra Agricultural Change &amp;amp; Environment Observatory 
&lt;br /&gt;
Foss House, Kings PoolÂ  Tel: 01904 456410 
&lt;br /&gt;
1-2 Peasholme Green Â Â Â  Â Â Â Â Â Â Â  GTN: 5137 
&lt;br /&gt;
York YO1 7PX 
&lt;br /&gt;
E-mail: &lt;a href=&quot;mailto:steve.d.langton@defra.gsi.gov.uk&quot;&gt;steve.d.langton@defra.gsi.gov.uk&lt;/a&gt; 
&lt;br /&gt;
******************************************************************* 
&lt;br /&gt;

&lt;br /&gt;
Department for Environment, Food and Rural Affairs (Defra)
&lt;br /&gt;

&lt;br /&gt;
This email and any attachments is intended for the named recipient only. If you have received it in error you have no authority to use, disclose,
&lt;br /&gt;
store or copy any of its contents and you should destroy it and inform the sender. 
&lt;br /&gt;
Whilst this email and associated attachments will have been checked for known viruses whilst within Defra systems we can accept no responsibility once it has left our systems.
&lt;br /&gt;
Communications on Defra's computer systems may be monitored and/or recorded to secure the effective operation of the system and for other lawful purposes.
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1184</comments>
  <dc:creator>slangton</dc:creator>
  <pubDate>Wed, 22 May 2013 09:22:03 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3362#3362</guid>
 </item>
 <item>
  <title>GenStat - RE: Death codes</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3361#3361</link>
  <description>Hi Brian,
&lt;br /&gt;

&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;Setting up analyses of cause-specific mortality in GenStat used to be simple
&lt;br /&gt;
when ICD codes for causes were numeric, even for wide ranges of codes,
&lt;br /&gt;
because GenStat has good ways of specifying ranges of values, which can be
&lt;br /&gt;
used with 'in' to restrict to selected groups of causes.
&lt;br /&gt;

&lt;br /&gt;
However, now that we're in the era of ICD10 codes, which start with a letter,
&lt;br /&gt;
things are not so straightforward.  Suppose I want to analyse for the group of
&lt;br /&gt;
all neoplasms, i.e. all causes in the range C00-D49.  Can anyone suggest a way
&lt;br /&gt;
of restricting deaths explicitly to this range easily, please? Assume I've created
&lt;br /&gt;
a factor that contains all the ICD10 codes, with labels in 'Ann' format as above.
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;
Well this is much longer than Peter's code, but this covers the problem in generality.
&lt;br /&gt;

&lt;br /&gt;
FACTOR [labels=!t(C00,C01,D22,C02,C03,C04,D01,D07); values=1...8] ICD10
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;Add appropriate numeric levels to this factor&amp;quot;
&lt;br /&gt;
TXCONST [tIDC10] ICD10 &amp;quot;Convert to text&amp;quot;
&lt;br /&gt;
TEXT Letters; !T(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z)
&lt;br /&gt;
FACTOR [LABELS=Letters] FirstLetter 
&lt;br /&gt;
&amp;quot;Read letters and numbers from text&amp;quot;
&lt;br /&gt;
READ [C=tIDC10;PRINT=*;LAYOUT=fixed] FirstLetter,Number; FIELD=1,2; SKIP=0; FREP=labels
&lt;br /&gt;
GROUPS 100*FirstLetter + Number; ICD10 &amp;quot;Combine back again with numeric levels&amp;quot;
&lt;br /&gt;

&lt;br /&gt;
PRINT 2(ICD10); FREP=Labels,Levels; DEC=0
&lt;br /&gt;

&lt;br /&gt;
	ICD10	 ICD10
&lt;br /&gt;
	C00	 300
&lt;br /&gt;
	C01	 301
&lt;br /&gt;
	D07	 422
&lt;br /&gt;
	D22	 302
&lt;br /&gt;
	C02	 303
&lt;br /&gt;
	C03	 304
&lt;br /&gt;
	C04	 401
&lt;br /&gt;
	D01	 407
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;Restrict to codes between C02...D10 A=100's, B = 200's, C=200's etc.&amp;quot;
&lt;br /&gt;
RESTRICT ICD10; ICD10 &amp;gt;= 302 .and. ICD10 &amp;lt;= 410
&lt;br /&gt;
PRINT 2(ICD10); FREP=Labels,Levels; DEC=0
&lt;br /&gt;

&lt;br /&gt;
	ICD10	 ICD10
&lt;br /&gt;
	D22	 302
&lt;br /&gt;
	C02	 303
&lt;br /&gt;
	C03	 304
&lt;br /&gt;
	C04	 401
&lt;br /&gt;
	D01	 407
&lt;br /&gt;

&lt;br /&gt;
Regards, David. 
&lt;br /&gt;
______________________________________________ 
&lt;br /&gt;
Dr David Baird      Statistical Consultant and GenStat Developer 
&lt;br /&gt;
VSN (NZ) Limited (David@VSN.CO.NZ) 
&lt;br /&gt;
8 Mariposa Crescent, Aidanfield, Christchurch 8025, New Zealand
&lt;br /&gt;
Ph +64 3 3350588 Cell +64 21 1160803
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1184</comments>
  <dc:creator>david@vsn.co.nz</dc:creator>
  <pubDate>Wed, 22 May 2013 00:44:46 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3361#3361</guid>
 </item>
 <item>
  <title>GenStat - RE: Death codes</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3360#3360</link>
  <description>I have a variant on Peter's solution.
&lt;br /&gt;
Instead of first using EDIT to replace the letters with numbers, I use READ directly to read the first letter of the code into a text (Letter) and the following two digits into a variate (Number). Then, you can restrict separately on the Letter and Number values.
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc 
&lt;br /&gt;

&lt;br /&gt;
delete [r=y] ICD10,Letter,Number,tICD10
&lt;br /&gt;
factor [labels=!t(C00,C01,D22,C02,C03,C04,D01); values=1...5] ICD10
&lt;br /&gt;

&lt;br /&gt;
ftext ICD10; tICD10
&lt;br /&gt;
text Letter
&lt;br /&gt;
read [CHAN=tICD10; LAYOUT=fixed] Letter,Number; FIELD=1,2
&lt;br /&gt;

&lt;br /&gt;
restrict ICD10
&lt;br /&gt;
restrict ICD10; cond=(Letter.in.'C').and.(Number.in.!(1...50))
&lt;br /&gt;
print ICD10
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of Peter Lane
&lt;br /&gt;
Sent: Wednesday, 22 May 2013 11:40 a.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Re: Death codes
&lt;br /&gt;

&lt;br /&gt;
The best way I can find requires three steps: factor to text, edit text to replace letters with numbers, then text to variate. But it seems to work.
&lt;br /&gt;

&lt;br /&gt;
factor [labels=!t(C00,C01,D22,C02,C03,C04,D01); values=1...5] ICD10
&lt;br /&gt;

&lt;br /&gt;
ftext ICD10; tICD10
&lt;br /&gt;
edit [chan=!t('G/C/1/ G-/D/2/ :')] tICD10
&lt;br /&gt;
read [chan=tICD10] vICD10
&lt;br /&gt;

&lt;br /&gt;
restrict ICD10; vICD10.in.!(101...103)
&lt;br /&gt;
print ICD10
&lt;br /&gt;
Peter Lane
&lt;br /&gt;
Statistical Consultant, Fenner School of the Environment &amp;amp; Society, Australian National University
&lt;br /&gt;

&lt;br /&gt;
On 22 May 2013 00:39, Brian Miller &amp;lt;brian.miller@iom-world.org&amp;gt; wrote:
&lt;br /&gt;
Setting up analyses of cause-specific mortality in GenStat used to be simple when ICD codes for causes were numeric, even for wide ranges of codes, because GenStat has good ways of specifying ranges of values, which can be used with 'in' to restrict to selected groups of causes.
&lt;br /&gt;

&lt;br /&gt;
However, now that we're in the era of ICD10 codes, which start with a letter, things are not so straightforward.  Suppose I want to analyse for the group of all neoplasms, i.e. all causes in the range C00-D49.  Can anyone suggest a way of restricting deaths explicitly to this range easily, please? Assume I've created a factor that contains all the ICD10 codes, with labels in 'Ann' format as above.
&lt;br /&gt;

&lt;br /&gt;
Thanks
&lt;br /&gt;
Brian
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate, distribute or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have received this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material pertaining to this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of the individual
&lt;br /&gt;
sender and may not represent those of The New Zealand Institute for Plant and
&lt;br /&gt;
Food Research Limited.
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1184</comments>
  <dc:creator>AndrewMc</dc:creator>
  <pubDate>Wed, 22 May 2013 00:36:05 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3360#3360</guid>
 </item>
 <item>
  <title>GenStat - RE: Death codes</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3359#3359</link>
  <description>The best way I can find requires three steps: factor to text, edit text to replace letters with numbers, then text to variate. But it seems to work.
&lt;br /&gt;

&lt;br /&gt;
factor [labels=!t(C00,C01,D22,C02,C03,C04,D01); values=1...5] ICD10
&lt;br /&gt;

&lt;br /&gt;
ftext ICD10; tICD10
&lt;br /&gt;
edit [chan=!t('G/C/1/ G-/D/2/ :')] tICD10
&lt;br /&gt;
read [chan=tICD10] vICD10
&lt;br /&gt;

&lt;br /&gt;
restrict ICD10; vICD10.in.!(101...103)
&lt;br /&gt;
print ICD10
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Peter Lane
&lt;br /&gt;

&lt;br /&gt;
Statistical Consultant, Fenner School of the Environment &amp;amp; Society, Australian National University
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
On 22 May 2013 00:39, Brian Miller &amp;lt;brian.miller@iom-world.org (&lt;a href=&quot;mailto:brian.miller@iom-world.org&quot;&gt;brian.miller@iom-world.org&lt;/a&gt;)&amp;gt; wrote:
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;Setting up analyses of cause-specific mortality in GenStat used to be simple when ICD codes for causes were numeric, even for wide ranges of codes, because GenStat has good ways of specifying ranges of values, which can be used with 'in' to restrict to selected groups of causes.
&lt;br /&gt;

&lt;br /&gt;
However, now that we're in the era of ICD10 codes, which start with a letter, things are not so straightforward. Suppose I want to analyse for the group of all neoplasms, i.e. all causes in the range C00-D49. Can anyone suggest a way of restricting deaths explicitly to this range easily, please? Assume I've created a factor that contains all the ICD10 codes, with labels in 'Ann' format as above.
&lt;br /&gt;

&lt;br /&gt;
Thanks
&lt;br /&gt;
Brian
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1184</comments>
  <dc:creator>Anonymous</dc:creator>
  <pubDate>Tue, 21 May 2013 23:39:54 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3359#3359</guid>
 </item>
 <item>
  <title>GenStat - Death codes</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3358#3358</link>
  <description>Setting up analyses of cause-specific mortality in GenStat used to be simple when ICD codes for causes were numeric, even for wide ranges of codes, because GenStat has good ways of specifying ranges of values, which can be used with 'in' to restrict to selected groups of causes.
&lt;br /&gt;

&lt;br /&gt;
However, now that we're in the era of ICD10 codes, which start with a letter, things are not so straightforward.  Suppose I want to analyse for the group of all neoplasms, i.e. all causes in the range C00-D49.  Can anyone suggest a way of restricting deaths explicitly to this range easily, please? Assume I've created a factor that contains all the ICD10 codes, with labels in 'Ann' format as above.
&lt;br /&gt;

&lt;br /&gt;
Thanks
&lt;br /&gt;
Brian
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1184</comments>
  <dc:creator>Anonymous</dc:creator>
  <pubDate>Tue, 21 May 2013 14:39:52 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3358#3358</guid>
 </item>
 <item>
  <title>GenStat - RE: Plotting histograms with common x-axis settings</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3357#3357</link>
  <description>Hi All
&lt;br /&gt;

&lt;br /&gt;
Following David's suggestion to use TRELLIS, I realised that if the TRELLIS procedure does much of what I want, then perhaps I could use and modify code from the procedure to get the graphs that I need. In the example below, I have adapted about a dozen or so lines of code from TRELLIs for calculating histogram limits. The values LHLIM and UHLIM are then passed as options to the DHISTOGRAM command which enables the same limits to be used for more than one graph.
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc 
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;Plot 3 histograms on a page all with common x-axis scales&amp;quot;
&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;
VARIATE Y3; VALUE=!(42,35,58,71,90,37)
&lt;br /&gt;
APPEND [NEW=Y; GROUPS=Variate] Y1,Y2,Y3 &amp;quot;stack the data&amp;quot;
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;Setup pens, axes and graph frames&amp;quot;
&lt;br /&gt;
PEN [RESET=y] 2...5; TAREA=100
&lt;br /&gt;
FRAME [RESET=y] 1
&lt;br /&gt;
FRAME [RESET=y] 2,3; YUP=1; XLO=0.70,0.85; XUP=0.85,1; \
&lt;br /&gt;
YLO=0.25; XMLO=0.05; XMUP=0
&lt;br /&gt;
XAXIS [RESET=y] 2,3; TI=' '&amp;quot;; LPOS=*&amp;quot;
&lt;br /&gt;
YAXIS [RESET=y] 1,2,3; LPOS=*
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;Borrowed code from TRELLIS for calculating histogram limits&amp;quot;
&lt;br /&gt;
DELETE [REDEF=y] CW,HLIMITS,LHLIM,UHLIM,NG,NGM1,NGROUPS
&lt;br /&gt;
scalar NGROUPS; 5 &amp;quot;&amp;lt;- user-specified number of groups&amp;quot;
&lt;br /&gt;
CALC CW=(MAX(Y)-MIN(Y))/NGROUPS
&lt;br /&gt;
CALC HLIMITS = MIN(Y) + !(1...#NGROUPS)*CW
&lt;br /&gt;
SCALAR LHLIM; VALUE=MIN(Y)
&lt;br /&gt;
SCALAR UHLIM; VALUE=MAX(Y)
&lt;br /&gt;
CALC NG,NGM1=NVAL(HLIMITS)-0,1
&lt;br /&gt;
IF (HLIMITS$[1]-LHLIM).LE.(HLIMITS$[2]-HLIMITS$[1])/2
&lt;br /&gt;
CALC LHLIM = 1.5*HLIMITS$[1] - 0.5*HLIMITS$[2]
&lt;br /&gt;
ENDIF
&lt;br /&gt;
IF (UHLIM-HLIMITS$[NG]).LE.(HLIMITS$[NG]-HLIMITS$[NGM1])/2
&lt;br /&gt;
CALC UHLIM = 1.5*HLIMITS$[NG] - 0.5*HLIMITS$[NGM1]
&lt;br /&gt;
ENDIF
&lt;br /&gt;

&lt;br /&gt;
&amp;quot;Plot histograms&amp;quot;
&lt;br /&gt;
DHIST [WIN=1; KEYW=0; TI='Y1'; SCREEN=clear; ORIENT=h; \
&lt;br /&gt;
NGROUP=NGROUPS; low=LHLIM; upp=UHLIM] Y1; PEN=2
&lt;br /&gt;
DHIST [WIN=2; KEYW=0; TI='Y2'; SCREEN=keep; ORIENT=h; \
&lt;br /&gt;
NGROUP=NGROUPS; low=LHLIM; upp=UHLIM] Y2; PEN=3
&lt;br /&gt;
DHIST [WIN=3; KEYW=0; TI='Y3'; SCREEN=keep; ORIENT=h; \
&lt;br /&gt;
NGROUP=NGROUPS; low=LHLIM; upp=UHLIM] Y3; PEN=4
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
-----Original Message-----
&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of Andrew McLachlan
&lt;br /&gt;
Sent: Tuesday, 14 May 2013 9:13 a.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Re: Plotting histograms with common x-axis settings
&lt;br /&gt;

&lt;br /&gt;
Thanks David. I had not thought of this approach. Using TRELLIS certainly does provide histograms with a common x-axis. A limitation is that it is more work to (manually) customise the individual plots.
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc 
&lt;br /&gt;

&lt;br /&gt;
-----Original Message-----
&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of David Baird
&lt;br /&gt;
Sent: Monday, 13 May 2013 4:35 p.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Re: Plotting histograms with common x-axis settings
&lt;br /&gt;

&lt;br /&gt;
Hi Andrew;
&lt;br /&gt;

&lt;br /&gt;
If you stack the data, you could use TRELLIS that does this for you:
&lt;br /&gt;

&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;

&lt;br /&gt;
APPEND [NEW=Y; GROUPS=Variate] Y1,Y2
&lt;br /&gt;
TRELLIS [GROUPS=Variate] Y; METHOD=histogram
&lt;br /&gt;

&lt;br /&gt;
Regards, David. 
&lt;br /&gt;
______________________________________________
&lt;br /&gt;
Dr David Baird      Statistical Consultant and GenStat Developer VSN (NZ) Limited (David@VSN.CO.NZ)
&lt;br /&gt;
8 Mariposa Crescent, Aidanfield, Christchurch 8025, New Zealand Ph +64 3 3350588 Cell +64 21 1160803
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;-----Original Message-----
&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of 
&lt;br /&gt;
Andrew McLachlan
&lt;br /&gt;
Sent: 13 May 2013 4:14 p.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Plotting histograms with common x-axis settings
&lt;br /&gt;

&lt;br /&gt;
Hi All
&lt;br /&gt;

&lt;br /&gt;
I am trying to plot several histograms with common x-axis settings 
&lt;br /&gt;
(axis
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;limits
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;and tickmarks). This is relatively easy to do when plotting one-way 
&lt;br /&gt;
tables
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;of
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;values - simply use the same factor to define each of the one-way tables.
&lt;br /&gt;
However, when plotting a histogram for a variate, DHISTOGRAM creates 
&lt;br /&gt;
the data bins, sets the axis limits and the placement of the 
&lt;br /&gt;
tickmarks. Since
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;I am
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;plotting histograms separately for several variates, I am having
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;difficulty in
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;matching the x-axis settings from one graph to the other. While I can
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;easily set
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;the same number of bins for each histogram, does anyone have any 
&lt;br /&gt;
suggestions on how I can get x-axis tickmarks to match from one 
&lt;br /&gt;
histogram
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;to
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;the next. I have included some example code to plot two histograms.
&lt;br /&gt;

&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;
PEN [RESET=y] 2...5; TAREA=100
&lt;br /&gt;
FFRAME [ROW=2; COL=1; RSKIP=0.02; YMLO=0.1] YAXIS [RESET=y] 1,2;
&lt;br /&gt;
LPOS=* XAXIS [RESET=y] 2,1; TITLE='Base x-axis','Need to match scale 
&lt;br /&gt;
below'
&lt;br /&gt;
DHISTOGRAM [WIN=2; KEYW=0; SCREEN=clear; NGROUP=5] Y1; PEN=2 
&lt;br /&gt;
DHISTOGRAM [WIN=1; KEYW=0; SCREEN=keep; NGROUP=5] Y2; PEN=3
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Andrew McLachlan
&lt;br /&gt;
Biometrician
&lt;br /&gt;
Plant &amp;amp; Food Research
&lt;br /&gt;

&lt;br /&gt;
T: +64 6 355 6110
&lt;br /&gt;
F: +64 6 351 7050
&lt;br /&gt;
&lt;a href=&quot;mailto:andrew.mclachlan@plantandfood.co.nz&quot;&gt;andrew.mclachlan@plantandfood.co.nz&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.plantandfood.co.nz&quot; target=&quot;_blank&quot;&gt;www.plantandfood.co.nz&lt;/a&gt;
&lt;br /&gt;
The New Zealand Institute for Plant &amp;amp; Food Research Limited
&lt;br /&gt;

&lt;br /&gt;
Postal Address: Plant &amp;amp; Food Research Palmerston North Private Bag 
&lt;br /&gt;
11600, Manawatu Mail Centre, Palmerston North, 4442, New Zealand 
&lt;br /&gt;
Physical Address: Plant &amp;amp; Food Research Palmerston North Batchelar 
&lt;br /&gt;
Road, Palmerston North, 4474, New Zealand
&lt;br /&gt;

&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to 
&lt;br /&gt;
legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate,
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;distribute
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;received
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;pertaining to
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of 
&lt;br /&gt;
the individual  sender and may not represent those of The New Zealand 
&lt;br /&gt;
Institute for Plant and  Food Research Limited.
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate, distribute or  reproduce all or any part of this e-mail or attachments.  If you have received this  e-mail in error, please notify the sender and delete all material pertaining to this  e-mail.  Any opinion or views expressed in this e-mail are those of the individual  sender and may not represent those of The New Zealand Institute for Plant and  Food Research Limited.
&lt;br /&gt;

&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate, distribute or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have received this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material pertaining to this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of the individual
&lt;br /&gt;
sender and may not represent those of The New Zealand Institute for Plant and
&lt;br /&gt;
Food Research Limited.
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1182</comments>
  <dc:creator>AndrewMc</dc:creator>
  <pubDate>Tue, 14 May 2013 02:40:17 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3357#3357</guid>
 </item>
 <item>
  <title>GenStat - RE: Plotting histograms with common x-axis settings</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3356#3356</link>
  <description>Thanks David. I had not thought of this approach. Using TRELLIS certainly does provide histograms with a common x-axis. A limitation is that it is more work to (manually) customise the individual plots.
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc 
&lt;br /&gt;

&lt;br /&gt;
-----Original Message-----
&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of David Baird
&lt;br /&gt;
Sent: Monday, 13 May 2013 4:35 p.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Re: Plotting histograms with common x-axis settings
&lt;br /&gt;

&lt;br /&gt;
Hi Andrew;
&lt;br /&gt;

&lt;br /&gt;
If you stack the data, you could use TRELLIS that does this for you:
&lt;br /&gt;

&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;

&lt;br /&gt;
APPEND [NEW=Y; GROUPS=Variate] Y1,Y2
&lt;br /&gt;
TRELLIS [GROUPS=Variate] Y; METHOD=histogram
&lt;br /&gt;

&lt;br /&gt;
Regards, David. 
&lt;br /&gt;
______________________________________________
&lt;br /&gt;
Dr David Baird      Statistical Consultant and GenStat Developer VSN (NZ) Limited (David@VSN.CO.NZ)
&lt;br /&gt;
8 Mariposa Crescent, Aidanfield, Christchurch 8025, New Zealand Ph +64 3 3350588 Cell +64 21 1160803
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;-----Original Message-----
&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of 
&lt;br /&gt;
Andrew McLachlan
&lt;br /&gt;
Sent: 13 May 2013 4:14 p.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Plotting histograms with common x-axis settings
&lt;br /&gt;

&lt;br /&gt;
Hi All
&lt;br /&gt;

&lt;br /&gt;
I am trying to plot several histograms with common x-axis settings 
&lt;br /&gt;
(axis
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;limits
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;and tickmarks). This is relatively easy to do when plotting one-way 
&lt;br /&gt;
tables
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;of
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;values - simply use the same factor to define each of the one-way tables.
&lt;br /&gt;
However, when plotting a histogram for a variate, DHISTOGRAM creates 
&lt;br /&gt;
the data bins, sets the axis limits and the placement of the 
&lt;br /&gt;
tickmarks. Since
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;I am
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;plotting histograms separately for several variates, I am having
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;difficulty in
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;matching the x-axis settings from one graph to the other. While I can
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;easily set
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;the same number of bins for each histogram, does anyone have any 
&lt;br /&gt;
suggestions on how I can get x-axis tickmarks to match from one 
&lt;br /&gt;
histogram
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;to
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;the next. I have included some example code to plot two histograms.
&lt;br /&gt;

&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;
PEN [RESET=y] 2...5; TAREA=100
&lt;br /&gt;
FFRAME [ROW=2; COL=1; RSKIP=0.02; YMLO=0.1] YAXIS [RESET=y] 1,2; 
&lt;br /&gt;
LPOS=* XAXIS [RESET=y] 2,1; TITLE='Base x-axis','Need to match scale 
&lt;br /&gt;
below'
&lt;br /&gt;
DHISTOGRAM [WIN=2; KEYW=0; SCREEN=clear; NGROUP=5] Y1; PEN=2 
&lt;br /&gt;
DHISTOGRAM [WIN=1; KEYW=0; SCREEN=keep; NGROUP=5] Y2; PEN=3
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Andrew McLachlan
&lt;br /&gt;
Biometrician
&lt;br /&gt;
Plant &amp;amp; Food Research
&lt;br /&gt;

&lt;br /&gt;
T: +64 6 355 6110
&lt;br /&gt;
F: +64 6 351 7050
&lt;br /&gt;
&lt;a href=&quot;mailto:andrew.mclachlan@plantandfood.co.nz&quot;&gt;andrew.mclachlan@plantandfood.co.nz&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.plantandfood.co.nz&quot; target=&quot;_blank&quot;&gt;www.plantandfood.co.nz&lt;/a&gt;
&lt;br /&gt;
The New Zealand Institute for Plant &amp;amp; Food Research Limited
&lt;br /&gt;

&lt;br /&gt;
Postal Address: Plant &amp;amp; Food Research Palmerston North Private Bag 
&lt;br /&gt;
11600, Manawatu Mail Centre, Palmerston North, 4442, New Zealand 
&lt;br /&gt;
Physical Address: Plant &amp;amp; Food Research Palmerston North Batchelar 
&lt;br /&gt;
Road, Palmerston North, 4474, New Zealand
&lt;br /&gt;

&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to 
&lt;br /&gt;
legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate,
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;distribute
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;received
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;pertaining to
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of 
&lt;br /&gt;
the individual  sender and may not represent those of The New Zealand 
&lt;br /&gt;
Institute for Plant and  Food Research Limited.
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to legal privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate, distribute or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have received this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material pertaining to this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of the individual
&lt;br /&gt;
sender and may not represent those of The New Zealand Institute for Plant and
&lt;br /&gt;
Food Research Limited.
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1182</comments>
  <dc:creator>AndrewMc</dc:creator>
  <pubDate>Mon, 13 May 2013 21:12:57 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3356#3356</guid>
 </item>
 <item>
  <title>GenStat - RE: Plotting histograms with common x-axis settings</title>
  <link>http://www.vsni.co.uk/forum/viewtopic.php?p=3355#3355</link>
  <description>Hi Andrew;
&lt;br /&gt;

&lt;br /&gt;
If you stack the data, you could use TRELLIS that does this for you:
&lt;br /&gt;

&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;

&lt;br /&gt;
APPEND [NEW=Y; GROUPS=Variate] Y1,Y2
&lt;br /&gt;
TRELLIS [GROUPS=Variate] Y; METHOD=histogram
&lt;br /&gt;

&lt;br /&gt;
Regards, David. 
&lt;br /&gt;
______________________________________________ 
&lt;br /&gt;
Dr David Baird      Statistical Consultant and GenStat Developer 
&lt;br /&gt;
VSN (NZ) Limited (David@VSN.CO.NZ) 
&lt;br /&gt;
8 Mariposa Crescent, Aidanfield, Christchurch 8025, New Zealand
&lt;br /&gt;
Ph +64 3 3350588 Cell +64 21 1160803
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;-----Original Message-----
&lt;br /&gt;
From: GENSTAT-Request [mailto:GENSTAT@jiscmail.ac.uk] On Behalf Of
&lt;br /&gt;
Andrew McLachlan
&lt;br /&gt;
Sent: 13 May 2013 4:14 p.m.
&lt;br /&gt;
To: &lt;a href=&quot;mailto:GENSTAT@JISCMAIL.AC.UK&quot;&gt;GENSTAT@JISCMAIL.AC.UK&lt;/a&gt;
&lt;br /&gt;
Subject: Plotting histograms with common x-axis settings
&lt;br /&gt;

&lt;br /&gt;
Hi All
&lt;br /&gt;

&lt;br /&gt;
I am trying to plot several histograms with common x-axis settings (axis
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;limits
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;and tickmarks). This is relatively easy to do when plotting one-way tables
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;of
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;values - simply use the same factor to define each of the one-way tables.
&lt;br /&gt;
However, when plotting a histogram for a variate, DHISTOGRAM creates the
&lt;br /&gt;
data bins, sets the axis limits and the placement of the tickmarks. Since
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;I am
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;plotting histograms separately for several variates, I am having
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;difficulty in
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;matching the x-axis settings from one graph to the other. While I can
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;easily set
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;the same number of bins for each histogram, does anyone have any
&lt;br /&gt;
suggestions on how I can get x-axis tickmarks to match from one histogram
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;to
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;the next. I have included some example code to plot two histograms.
&lt;br /&gt;

&lt;br /&gt;
VARIATE Y1; VALUE=!(13,31,0,54,70,14,19,82,12,55,71,99,9,17,\
&lt;br /&gt;
95,50,58,27,33,47,52,60,11,30,19,46,44,77,31,10)
&lt;br /&gt;
VARIATE Y2; VALUE=!(22,9,32,12,61,30)
&lt;br /&gt;
PEN [RESET=y] 2...5; TAREA=100
&lt;br /&gt;
FFRAME [ROW=2; COL=1; RSKIP=0.02; YMLO=0.1]
&lt;br /&gt;
YAXIS [RESET=y] 1,2; LPOS=*
&lt;br /&gt;
XAXIS [RESET=y] 2,1; TITLE='Base x-axis','Need to match scale below'
&lt;br /&gt;
DHISTOGRAM [WIN=2; KEYW=0; SCREEN=clear; NGROUP=5] Y1; PEN=2
&lt;br /&gt;
DHISTOGRAM [WIN=1; KEYW=0; SCREEN=keep; NGROUP=5] Y2; PEN=3
&lt;br /&gt;

&lt;br /&gt;
Cheers, Andrew Mc
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Andrew McLachlan
&lt;br /&gt;
Biometrician
&lt;br /&gt;
Plant &amp;amp; Food Research
&lt;br /&gt;

&lt;br /&gt;
T: +64 6 355 6110
&lt;br /&gt;
F: +64 6 351 7050
&lt;br /&gt;
&lt;a href=&quot;mailto:andrew.mclachlan@plantandfood.co.nz&quot;&gt;andrew.mclachlan@plantandfood.co.nz&lt;/a&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.plantandfood.co.nz&quot; target=&quot;_blank&quot;&gt;www.plantandfood.co.nz&lt;/a&gt;
&lt;br /&gt;
The New Zealand Institute for Plant &amp;amp; Food Research Limited
&lt;br /&gt;

&lt;br /&gt;
Postal Address: Plant &amp;amp; Food Research Palmerston North
&lt;br /&gt;
Private Bag 11600, Manawatu Mail Centre, Palmerston North, 4442, New
&lt;br /&gt;
Zealand
&lt;br /&gt;
Physical Address: Plant &amp;amp; Food Research Palmerston North
&lt;br /&gt;
Batchelar Road, Palmerston North, 4474, New Zealand
&lt;br /&gt;

&lt;br /&gt;
The contents of this e-mail are confidential and may be subject to legal
&lt;br /&gt;
privilege.
&lt;br /&gt;
If you are not the intended recipient you must not use, disseminate,
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;distribute
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;or
&lt;br /&gt;
reproduce all or any part of this e-mail or attachments.  If you have
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;received
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;this
&lt;br /&gt;
e-mail in error, please notify the sender and delete all material
&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;pertaining to
&lt;br /&gt;
&lt;div class=&quot;quote&quot;&gt;Quote:&lt;div class=&quot;inside_quote&quot;&gt;this
&lt;br /&gt;
e-mail.  Any opinion or views expressed in this e-mail are those of the
&lt;br /&gt;
individual
&lt;br /&gt;
sender and may not represent those of The New Zealand Institute for Plant
&lt;br /&gt;
and
&lt;br /&gt;
Food Research Limited.&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;

&lt;br /&gt;
 Post generated using Mail2Forum (http://www.mail2forum.com)</description>
  <category>GenStat</category>
  <comments>http://www.vsni.co.uk/forum/posting.php?mode=reply&amp;t=1182</comments>
  <dc:creator>david@vsn.co.nz</dc:creator>
  <pubDate>Mon, 13 May 2013 04:35:38 GMT</pubDate>
  <guid isPermaLink="true">http://www.vsni.co.uk/forum/viewtopic.php?p=3355#3355</guid>
 </item>
</channel>
</rss>
