<?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: Minor Tick Marks, V Axis, Proc Boxplot in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702368#M33920</link>
    <description>&lt;P&gt;Thanks for taking a look.&amp;nbsp; Yeah, you are right, of course, that my specification of "0.5" was bogus and it should have been "1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's nothing in the log out of the ordinary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing to a .rtf file, which they want.&amp;nbsp; Maybe that's part of the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the ideas...&lt;/P&gt;</description>
    <pubDate>Sun, 29 Nov 2020 23:59:21 GMT</pubDate>
    <dc:creator>davehalltwp</dc:creator>
    <dc:date>2020-11-29T23:59:21Z</dc:date>
    <item>
      <title>Minor Tick Marks, V Axis, Proc Boxplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702302#M33913</link>
      <description>&lt;P&gt;Is there any way to add minor tick marks on the vertical axis using PROC BOXPLOT?&amp;nbsp; It seems like there is, per documentation and Google searches, but nothing I try works.&amp;nbsp; I get the majors, of course, but no ticks in between.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;axis1 minor = (h = 0.4 number = 1) order = (-20 to 10 by 2) major = (h = 0.8); 

proc boxplot data = ft2;
     where avisitn = &amp;amp;QQ;
     plot Change * Treatment / vaxis = axis1 nohlabel cboxes =(color) symbollegend = legend1;
	 legend1 label = (' ');
	 title1 h=8pt color=black font='courier' J=L "xxxxxxxx, Inc.";
	 title2 h=8pt color=black font='courier' J=L "&amp;amp;STDNO                                                                                              Page &amp;amp;PAGVAR of 4";

     title5 h=8pt color=black font='courier' J=C "&amp;amp;TITLE5";
	 title6 h=8pt color=black font='courier' J=C "&amp;amp;TITLE6";
	 title7 h=8pt color=black font='courier' J=C "&amp;amp;TITLE7";
 	 title9 h=8pt color=black font='courier' J=C "&amp;amp;VISTEXT";
     run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*axis1 order = (-7 to 7.5 by 1) */; 

proc boxplot data = ft2;
     where avisitn = &amp;amp;QQ;
     plot Change * Treatment / /*vaxis = axis1*/ vaxis=-7 to 7.5 by 1 vminor = 0.5 nohlabel;
	 legend1 label = (' ');
	 title1 h=8pt color=black font='courier' J=L "xxxxxxx, Inc.";
	 title2 h=8pt color=black font='courier' J=L "&amp;amp;STDNO                                                                                              Page &amp;amp;PAGVAR of 4";

     title5 h=8pt color=black font='courier' J=C "&amp;amp;TITLE5";
	 title6 h=8pt color=black font='courier' J=C "&amp;amp;TITLE6";
	 title7 h=8pt color=black font='courier' J=C "&amp;amp;TITLE7";
 	 title9 h=8pt color=black font='courier' J=C "&amp;amp;VISTEXT";
     run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 13:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702302#M33913</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2020-11-29T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Minor Tick Marks, V Axis, Proc Boxplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702307#M33914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175401"&gt;@davehalltwp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do get minor tick marks with either approach (both in traditional SAS/GRAPH output and in HTML output). The only correction I had to make was &lt;FONT face="courier new,courier"&gt;vminor = &lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt; (or &lt;FONT face="courier new,courier"&gt;2&lt;/FONT&gt;, &lt;FONT face="courier new,courier"&gt;3&lt;/FONT&gt;, ... for more minor tick marks) in the second approach because VMINOR=n "&lt;SPAN&gt;specifies the number of minor tick marks between major tick marks" (&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_boxplot_syntax06.htm&amp;amp;locale=en#statug.boxplot.opt_vminor" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;). Without the H= specification of the AXIS1 statement (i.e., with the second approach) the minor tick marks can be very short (like only one pixel), though, if traditional output is created in a window with portrait orientation. Are there any warnings in the log?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 14:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702307#M33914</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-29T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Minor Tick Marks, V Axis, Proc Boxplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702368#M33920</link>
      <description>&lt;P&gt;Thanks for taking a look.&amp;nbsp; Yeah, you are right, of course, that my specification of "0.5" was bogus and it should have been "1".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's nothing in the log out of the ordinary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing to a .rtf file, which they want.&amp;nbsp; Maybe that's part of the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the ideas...&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2020 23:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702368#M33920</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2020-11-29T23:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Minor Tick Marks, V Axis, Proc Boxplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702441#M33923</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ft2;
call streaminit(27182818);
length color $8;
do treatment=1, 2;
  color=choosec(treatment,'red','green');
  do _n_=1 to 50;
    change=rand('uniform',-21,8)+treatment;
    output;
  end;
end;
run;

ods rtf file = "C:\Temp\boxplot.rtf";

goptions reset=all;

axis1 minor = (h = 0.4 number = 1) order = (-20 to 10 by 2) major = (h = 0.8); 

proc boxplot data = ft2;
plot Change * Treatment / vaxis = axis1 nohlabel cboxes =(color) symbollegend = legend1;
legend1 label = (' ');
run;

ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With the self-contained program above -- using SAS 9.4M5 under Windows -- I created the RTF file boxplot.rtf (size: 13 KB). I opened it with Word 2013, zoomed in and took the partial screenshot below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boxplot_rtf.png" style="width: 913px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52145i9C13804F700407F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="boxplot_rtf.png" alt="boxplot_rtf.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 09:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702441#M33923</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-30T09:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Minor Tick Marks, V Axis, Proc Boxplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702488#M33927</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reading through your message more slowly, I realized that I have always had a poor understanding of the "background" setup for SAS graphics.&amp;nbsp; For instance, I don't really know what this really means: "&lt;SPAN&gt;&amp;nbsp;(both in traditional SAS/GRAPH output and in HTML output)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So based on that, on a whim, I made this change, and now I am getting the minor tick marks (as well as the different colors for each box that I was trying for earlier):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*ods graphics on / width = 8.5 in height =3.7 in;  ** this controls the size of the plot **;
ods graphics off / width = 8.5 in height =3.7 in;  ** this controls the size of the plot **;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I'm like a monkey in that I don't fully understand what I've done, but my plots are what I need now.&amp;nbsp; So thank you very much, I truly appreciate it (and will mark your post as SOLUTION!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I have time I will try to further educate myself on these topics, because I've always enjoyed doing plots and figures but need to get stronger at this part of it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...dave&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 12:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702488#M33927</guid>
      <dc:creator>davehalltwp</dc:creator>
      <dc:date>2020-11-30T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Minor Tick Marks, V Axis, Proc Boxplot</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702559#M33943</link>
      <description>&lt;P&gt;You're welcome. Glad to read that the minor tick marks finally appeared.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175401"&gt;@davehalltwp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;(...) For instance, I don't really know what this really means: "&lt;SPAN&gt;&amp;nbsp;(both in traditional SAS/GRAPH output and in HTML output)."&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry, I think my wording was a bit unclear. I meant the GRAPH window showing the boxplot from the (default) catalog WORK.GSEG (as in the old days before the advent of ODS) vs. the PNG file embedded in HTML output (after activating "Create HTML" in Tools --&amp;gt; Options --&amp;gt; Preferences). However, the latter can still be "traditional" SAS/GRAPH output &lt;EM&gt;if&lt;/EM&gt; the checkbox "Use ODS Graphics" in the Preferences window is not ticked &lt;EM&gt;and&lt;/EM&gt; &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;ODS GRAPHICS&lt;/A&gt; is switched OFF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175401"&gt;@davehalltwp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;So based on that, on a whim, I made this change, and now I am getting the minor tick marks (as well as the different colors for each box that I was trying for earlier):&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*ods graphics on / width = 8.5 in height =3.7 in;  ** this controls the size of the plot **;
ods graphics off / width = 8.5 in height =3.7 in;  ** this controls the size of the plot **;&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Good idea to try and switch ODS GRAPHICS off. I have this statement in my autoexec file, so I tend to forget that it is not the default setting in most SAS installations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/GRAPH procedures such as PROC GPLOT &lt;EM&gt;always&lt;/EM&gt; produce "traditional" (device-based) graphics. In contrast, the "modern" PROC SGPLOT and the other SG... procedures &lt;EM&gt;always&lt;/EM&gt; produce (template-based) ODS graphics. But then there are procedures such as PROC BOXPLOT, PROC UNIVARIATE (with its HISTOGRAM statement) and several others which are capable of producing &lt;EM&gt;either&lt;/EM&gt; type of graphics -- depending on whether ODS graphics is enabled (cf. &lt;A href="https://communities.sas.com/t5/Graphics-Programming/Change-in-behavior-of-SAS-Graph-using-ODS-HTML/m-p/347858/highlight/true#M12061" target="_blank" rel="noopener"&gt;this 2017 post&lt;/A&gt;). This is when confusion starts, e.g., if explicit color specifications are not honored (because they're overridden by ODS style templates), as it happened in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I &lt;A href="https://communities.sas.com/t5/New-SAS-User/Changing-colour-of-a-normal-curve/m-p/695519/highlight/true#M25187" target="_blank" rel="noopener"&gt;recently&lt;/A&gt; came across a link to an &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-t-control-color-of-plots-in-PROC-UNIVARIATE/m-p/107586/highlight/true#M9954" target="_blank" rel="noopener"&gt;old post&lt;/A&gt; which explains the impact of ODS GRAPHICS and the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=graphref&amp;amp;docsetTarget=n05saudrdwvd2wn1a5n0e8xclu66.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;GSTYLE system option&lt;/A&gt; on graphs produced by PROC UNIVARIATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Minor-Tick-Marks-V-Axis-Proc-Boxplot/m-p/702559#M33943</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-30T16:29:36Z</dc:date>
    </item>
  </channel>
</rss>

