I would like to create a graph showing that my CO2flux_h and CO2flux_t response variables together.
I tried to create it automatically by using "tasks- stack by" options but it did not work.
Is there any code to create it?
I am adding my data set as an attachment.
Except you should learn SGPLOT. Most examples are SAS Graph, which is also what EG uses. SGPLOT is easier to use and better quality graphics, but there’s a lot of old SAS Graph code out there so it’s easier to find examples.
Heres some SGPlot Examples.
Hi I tried to use this code ;
goptions gunit=pct htitle=6 ftitle="albany amt/bold" htext=4.25 ftext="albany amt/bold";
axis1 label=('spacing') offset=(8,8);
axis2 label=(a=90 'CO2flux') order=(0 to 12 by 1) minor=(number=3) offset=(0,0);
pattern1 v=solid color=cx9999ff; /* light blue */
pattern2 v=solid color=cx993366; /* purplish */
pattern3 v=solid color=cxffffcc; /* pale yellow */
title1 ls=1.5 "Respiration";
title2 "Compares the contribution of Rh to Rt";
title3 "to a total across months";
proc gchart data=mydata.mt1;
vbar month / discrete type=mean sumvar=CO2flux nolegend
autoref clipref cref=graycc
but it just adds my flux_types which are Rh(heterotraphic respiration) and Rt( total respiration) together(it sums Rh and Rt,and results in graph). I meant I want to see Rh CO2flux inside of Rt CO2flux. How can I do this?
I meant I want to see Rh CO2flux inside of Rt CO2flux. How can I do this?
No idea of what that means. Which of the graphs on that page were you trying to create, or what does that look like? and what does your data look like? If you need help with the code please provide sample data or use sashelp.cars in your attempt.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.