<?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: Why won't box plot colour change? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873122#M38700</link>
    <description>&lt;P&gt;Start with &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim1&lt;/A&gt; and do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC sgplot DATA=sashelp.cars;
vbox invoice / 

FILLATTRS=(color=pink) 

LINEATTRS=(color=black thickness=2)  
MEANATTRS=(color=black )
MEDIANATTRS=(color=black)
WHISKERATTRS=(color=black thickness=2)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 09:52:55 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-05-01T09:52:55Z</dc:date>
    <item>
      <title>Why won't box plot colour change?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873117#M38698</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to just do a singular box plot for the data below - the box plot shows in the default colours but i want to change the blue of the box plot to pink, also i have seen elsewhere people have put a table inside the graph stating the quarters and the medium, how do i do that as well?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;PRE&gt;PROC IMPORT 
  DATAFILE = '/home/imdb-videogames.csv'
  OUT = Videogame_data
  DBMS = CSV 
  REPLACE;
RUN;

DATA Videogame_data;
  SET Videogame_data;
  IF NOT MISSING(rating) AND NOT MISSING(votes) AND NOT MISSING(certificate);
RUN;

PROC SORT DATA=Videogame_data OUT=clean_videogamedata NODUPKEY;
  BY name;
RUN;

DATA Videogame_data;
  SET clean_videogamedata;
RUN;

DATA TITLES;
SET clean_videogamedata; 
words = COUNTW(name,' ');
RUN;

PROC PRINT DATA=TITLES;
VAR name words;
TITLE 'Number of Words in each Video Game Title';
RUN;

PROC MEANS DATA=TITLES NWAY NOPRINT;
VAR WORDS;
OUTPUT OUT = MEANS (DROP = _TYPE_ _FREQ_)
N = NUMBER_OF_OBSERVATIONS
MEAN = AVERAGE
;
RUN;

PROC PRINT DATA=MEANS NOOBS;
TITLE 'Average Number of Words Per Video Game Title';
RUN;

PROC sgplot DATA=TITLES;
vbox words; 
styleattrs datacolors=(pink) datacontrastcolors=(black);
run;&lt;/PRE&gt;&lt;P&gt;here is my outcome (statistically is fine - visually is not how i want it).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-05-01 at 09.52.53.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83437i8BC4D662EE2AFEB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-05-01 at 09.52.53.png" alt="Screenshot 2023-05-01 at 09.52.53.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 08:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873117#M38698</guid>
      <dc:creator>jacko1801</dc:creator>
      <dc:date>2023-05-01T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't box plot colour change?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873121#M38699</link>
      <description>&lt;P&gt;See here :&lt;BR /&gt;SAS ODS Graphics: Procedures Guide&lt;BR /&gt;SGPLOT Procedure&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_031/grstatproc/n1waawwbez01ppn15dn9ehmxzihf.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_031/grstatproc/n1waawwbez01ppn15dn9ehmxzihf.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC sgplot DATA=sashelp.heart;
 vbox Cholesterol / DATASKIN=GLOSS 
                    fillattrs=(color=lightgreen transparency=.2)
                    lineattrs=(pattern=dashdashdot color=pink thickness=4)
                    WHISKERATTRS=(pattern=solid color=pink thickness=7) 
                    DISPLAYSTATS=(Q1 MEDIAN Q3);
*styleattrs datacolors=(pink) datacontrastcolors=(black);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 09:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873121#M38699</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-05-01T09:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't box plot colour change?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873122#M38700</link>
      <description>&lt;P&gt;Start with &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim1&lt;/A&gt; and do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC sgplot DATA=sashelp.cars;
vbox invoice / 

FILLATTRS=(color=pink) 

LINEATTRS=(color=black thickness=2)  
MEANATTRS=(color=black )
MEDIANATTRS=(color=black)
WHISKERATTRS=(color=black thickness=2)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 09:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Why-won-t-box-plot-colour-change/m-p/873122#M38700</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-05-01T09:52:55Z</dc:date>
    </item>
  </channel>
</rss>

