|
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
>> >
>> >
>>
|