
Tuesday
DanH_sas
SAS Super FREQ
Member since
06-23-2011
- 1,847 Posts
- 161 Likes Given
- 309 Solutions
- 1,058 Likes Received
About
SAS/Graph
ODS Graphics
-
Latest posts by DanH_sas
Subject Views Posted 253 Tuesday 1093 2 weeks ago 1120 2 weeks ago 1140 2 weeks ago 1153 2 weeks ago 301 a month ago 769 02-11-2025 10:38 AM 861 02-10-2025 02:19 PM 1010 02-10-2025 01:57 PM 1031 02-10-2025 01:44 PM -
Activity Feed for DanH_sas
- Got a Like for Re: Coloring sgplot lines by indicator variable value. Wednesday
- Got a Like for Re: Coloring sgplot lines by indicator variable value. Wednesday
- Got a Like for Re: Coloring sgplot lines by indicator variable value. Tuesday
- Posted Re: Coloring sgplot lines by indicator variable value on Graphics Programming. Tuesday
- Got a Like for Re: SGPlot Bar with min and max values. 2 weeks ago
- Got a Like for Re: SGPlot Bar with min and max values. 2 weeks ago
- Got a Like for Re: SGPlot Bar with min and max values. 2 weeks ago
- Got a Like for Re: SGPlot Bar with min and max values. 2 weeks ago
- Posted Re: SGPlot Bar with min and max values on Graphics Programming. 2 weeks ago
- Got a Like for Re: SGPlot Bar with min and max values. 2 weeks ago
- Got a Like for Re: SGPlot Bar with min and max values. 2 weeks ago
- Posted Re: SGPlot Bar with min and max values on Graphics Programming. 2 weeks ago
- Posted Re: SGPlot Bar with min and max values on Graphics Programming. 2 weeks ago
- Posted Re: SGPlot Bar with min and max values on Graphics Programming. 2 weeks ago
- Got a Like for Re: How to display subscript in proc sgplot in y axis for multiple PK parameters in box plot. a month ago
- Got a Like for Re: How to display subscript in proc sgplot in y axis for multiple PK parameters in box plot. a month ago
- Posted Re: How to display subscript in proc sgplot in y axis for multiple PK parameters in box plot on Graphics Programming. a month ago
- Liked Re: box not plotting with 2 y axes for Quentin. 02-11-2025 10:39 AM
- Posted Re: box not plotting with 2 y axes on Graphics Programming. 02-11-2025 10:38 AM
- Liked Re: box not plotting with 2 y axes for Quentin. 02-10-2025 08:46 PM
-
Posts I Liked
Subject Likes Author Latest Post 5 3 4 12 6 -
My Liked Posts
Subject Likes Posted 4 Tuesday 1 2 weeks ago 1 2 weeks ago 2 2 weeks ago 2 2 weeks ago -
My Library Contributions
09-23-2009
01:04 PM
Hey Julie,
In SAS 9.2, this is very simple to do. In 9.1.3, I had to take a more creative approach. Try the sample below and see if you can make it work for you.
Thanks!
Dan
/* summarize your data */
proc means data=sashelp.class noprint;
class age sex;
var weight height;
output out=class mean=;
run;
/* Adjust some fields for correct plotting */
data class2;
set class;
if (_type_ ne 2) then weight=.;
if (_type_ ne 3) then height=.;
if (sex eq " ") then sex="M";
run;
symbol1 i=needle width=40 color=blue;
symbol2 i=join;
axis1 offset=(5pct, 5pct) minor=none;
axis2 order=(0 to 150 by 25) offset=(0,0);
axis3 order=(0 to 80 by 20) offset=(0,0);
proc gplot data=class2;
plot weight*age / haxis=axis1 vaxis=axis2;
plot2 height*age=sex / vaxis=axis3;
run;
... View more
09-23-2009
11:13 AM
What version of SAS are you using?
... View more
09-23-2009
09:31 AM
You can set the size on the ODS GRAPHICS statement. The options are WIDTH and HEIGHT. If you set only one of those values, the aspect of the graph is maintained, but you can set both values if there is a specified aspect you want. Be sure to put the unit after the number your set, e.g. 100px, 2in, 5cm, etc.
... View more
09-18-2009
10:22 AM
There appears to a problem with your SAS/GRAPH product license. I would call Tech Support and see if they can help you with that.
... View more
09-16-2009
12:05 PM
The best approach for creating this graph would probably be to create an annotate dataset for the regions and region labels. Then, use that annotate dataset with PROC GPLOT to draw the scatterplot with the regions.
... View more
09-05-2009
06:03 PM
Currently, the SG procedures do not have this option. If this is an option you would like to see, I would recommend calling Technical Support and making a request.
Thanks!
... View more
09-04-2009
03:50 PM
Currently, the only variables you can use in an ENTRY statement or axis label are variables that are part of expressions that return a scalar value, such as eval(mean(weight)). If there is additional functionality you need in this area, you may want to call Technical Support and describe the new functionality you need to them.
Thanks!
... View more
09-04-2009
10:34 AM
Hey Alain,
I have an example an example of doing something very similar to this in my paper "Secrets of the SG Procedure". Look at the section called "Paneled Plots with Different Data Range" starting at the end of page 9. The example on page 10 seems to be what you want. Let me know if this works for you.
Thanks!
paper: http://support.sas.com/resources/papers/proceedings09/324-2009.pdf
Message was edited by: DanH@sas
... View more
09-04-2009
10:25 AM
Hello Dr. Bessler,
There is a document in the SAS Help that should provide some guidance. If you look under SAS Products->SAS Graph->Graph Appearance->Styles->Modifying a Style, you will see a document called "Style Elements for use with Device-Based Graphics". In this document, you will the style element names and attributes, along with the parts of the graph they affect. Take a look at that document and see if it helps.
Thanks!
... View more
09-01-2009
10:39 AM
2 Likes
Here is yet another possibility. If you are running SAS 9.2, here's a trick you can use with the SG procedures. You can inline unicode character directly in the string. Taking Andre's example:
proc sgplot data=sashelp.class;
xaxis min=10 max=20 label="La (*ESC*){unicode mu} des ados";
scatter x=weight y=age;
run;
Notice that you do not have to change fonts in the middle of the label.
... View more
08-31-2009
11:22 PM
Concerning the drilldown question, activex does not support all of the java applet drilldown modes. I'm not sure which example you're running, but if the java drill behavior is to subset the graph, that is DRILLDOWNMODE=LOCAL and is not supported by activex.
The answer to your second question is "yes". The key is having your network admin copy the java jar files to a location in your network viewable by everyone in your intranet (prefereably addressable through your web server). Then, instead of using the default codebase in SAS, set the CODEBASE= option on the ODS HTML statement to point to this location in your network (such as an HTTP:// location). When you deploy your files, everyone will see your graphs.
... View more
08-31-2009
03:29 PM
Hey Celine,
Can you give an example of the string assigned to &x_lab or &y_lab?
Thanks!
Dan
... View more
08-27-2009
04:19 PM
Hey all!
This is a quick note to let everyone know that we now have a new forum called "SAS/GRAPH and ODS Graphics". The purpose of this forum is to discuss the visual representation of data using SAS/GRAPH and ODS Graphics. Come by and share your questions, suggestions, experiences and pains regarding graphics. Be sure to read the welcome message for additional forum information.
Thanks!
Dan
... View more
08-27-2009
04:17 PM
What version of SAS are you running?
... View more
08-27-2009
04:13 PM
Assuming you have 9.2 phase 2, try these examples and see if either give you what you want.
data test;
input v1 v2 v3;
cards;
1 1 1.10
1 1 2.30
1 2 4.50
1 2 1.80
2 3 0.80
2 3 7.80
2 3 1.10
2 4 3.60
2 4 2.70
2 5 1.60
2 5 2.30
2 5 0.90
3 6 9.50
3 6 0.60
3 7 6.40
3 7 7.80
3 7 2.80
3 8 5.70
3 8 3.60
run;
proc sgpanel data=test;
panelby v2 / onepanel noborder layout=columnlattice novarname;
vbar v1 / response=v3 stat=mean limitstat=stddev limits=upper;
run;
proc sgpanel data=test;
panelby v2 / onepanel noborder uniscale=row layout=columnlattice novarname;
vbar v1 / response=v3 stat=mean limitstat=stddev limits=upper;
run;
... View more
- « Previous
- Next »