03-08-2012 04:29 PM
So I feel I have spent enough time trying to figure this out with my limited coding knowledge that it is time to come to the experts.
I am producing a graph using the following codeing
proc sgplot data=end;
scatter y=Nmean x=Cmean/ group=spp
It works all fine and dandy for a presentation, however for publication things will be in black and white. I would like to know how to make the error bars for one group dashed while keeping the other solid. This is done in 9.2 if you decide to try changing styles/templates (something i've been playing with to no avail).
Thanks for the help on this, I know its probably easier than most issues here.
03-09-2012 08:25 AM
Have you tried using a data attribute map? This will allow you to change the color of the lines based on the value of the grouping variable.
Try this link:
03-09-2012 01:03 PM
For somereason I cant get the program to recognize attribute mapping the way that shows me.
The closest I have come to what I desire is using this:
proc template ;
define statgraph group;
entrytitle "N vs C";
scatterplot x=Cmean y=Nmean / group=spp yERRORLOWER=Nlow yERRORUPPER=NHigh
define style biplots;
style GraphData1 /
style GraphData2 /
style GraphData3 /
ods listing style=biplots;
proc sgrender data=end
The Problem is that the errorbarattrs override each other and I cant figure out how to get it to acknowledge all of them.