LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 10 Jun 2010 14:22:33 -0400
Reply-To:   Ya Huang <ya.huang@AMYLIN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ya Huang <ya.huang@AMYLIN.COM>
Subject:   Re: SG Graph Box Plot Question
Comments:   To: Yu Zhang <zhangyu05@GMAIL.COM>

Yu,

Nice finding ! Thanks. But still, the document is not accurate :-(

Ya

On Thu, 10 Jun 2010 13:17:49 -0500, Yu Zhang <zhangyu05@GMAIL.COM> wrote:

>interestingly, the style of CONNECT line was controlled by Graphdatadefault. >i changed the color to lighter orange. > >Yu > >proc template; >define style Boxplot; >parent = styles.analysis; >style GraphBox from GraphBox / > capstyle="line" > connect="mean" > displayopts="fill mean median q1 q2 outlier caps connect"; >style GraphBoxMean from GraphBoxMean / > markersymbol="circlefilled" > contrastcolor=blue > markersize = 8px; >class GraphDataDefault / > endcolor = GraphColors('gramp3cend') > neutralcolor = GraphColors('gramp3cneutral') > startcolor = GraphColors('gramp3cstart') > markersize = 7px > markersymbol = "circle" > linethickness = 5px > linestyle = 10 > contrastcolor = CxEEAA21 > color = GraphColors('gdata'); >end; >run; > >ods listing close; >ods html file="c:\junk.html" gpath="c:\" style=boxplot; > >proc sgplot data=sashelp.class; >vbox weight / category=sex; >run; > >ods html close; > > > >On Wed, Jun 9, 2010 at 4:43 PM, Ya Huang <ya.huang@amylin.com> wrote: > >> According to this, it should be controlled by "GraphConnectLine", but >> I tried and it doesn't work: >> >> >> http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a003166 >> 123.htm<http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default /a003166%0A123.htm> >> >> proc template; >> define style Boxplot; >> parent = styles.analysis; >> style GraphBox from GraphBox / >> capstyle="line" >> connect="mean" >> displayopts="fill mean median q1 q2 outlier caps connect"; >> style GraphBoxMean from GraphBoxMean / >> markersymbol="circlefilled" >> contrastcolor=blue >> markersize = 8px; >> style GraphConnectLine / >> linestyle = 10 >> linethickness = 5px >> contrastcolor = GraphColors('connectLine'); >> end; >> run; >> >> ods listing close; >> ods html file="c:\temp\junk.html" gpath="c:\temp" style=boxplot; >> >> proc sgplot data=sashelp.class; >> vbox weight / category=sex; >> run; >> >> ods html close; >> >> Not sure if this is one of the cases for "documented but not implemented >> yet" :-) >> >> On Wed, 9 Jun 2010 16:11:57 -0400, Uddin, Sharif [ATRMUS] >> <SUddin@ITS.JNJ.COM> wrote: >> >> >Hello SG users, >> > >> > >> > >> >I am using this template definition to change the appearance of the Box >> >Plots (there are four plots in each panel): >> > >> > >> > >> > >> > >> >proc template; >> > >> >define style Styles.Boxplot; >> > >> >parent = styles.analysis; >> > >> > >> > >> >style GraphBox from GraphBox / >> > >> > capstyle="line" >> > >> > connect="mean" >> > >> > displayopts="fill mean median q1 q2 outlier caps connect"; >> > >> > >> > >> >style GraphBoxMean from GraphBoxMean / >> > >> > markersymbol="circlefilled" >> > >> > contrastcolor=blue >> > >> > markersize = 8px; >> > >> > >> > >> >end; >> > >> >run; >> > >> > >> > >> > >> > >> >I am using proc sgpanel to create four box plots in each panel. The >> >connect='mean' option connects the mean in the box plots. >> > >> > >> > >> >The question is how I can change the color of the line that is >> >connecting the means. I can change the color of the marker (circlefilled >> >in this case) but cannot seems to change the color or the lines. >> > >> > >> > >> >Can anybody help me out? >> > >> > >> > >> >I appreciate it. >> > >> > >> > >> >Thanks, >> > >> > >> > >> >Sharif >> > >> > >>


Back to: Top of message | Previous page | Main SAS-L page