Data visualization with SAS programming

Space between error bars

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

Space between error bars

I am wondering if there is a way in SGPLOT to put some extra space between error bars so they don't overlap.

For ex: I am working on a line chart. There are couple of lines by treatment. Each of the line has there own error bars.

Now the x-axis scale is same so the error bars are overlapping for these two lines in line chart. For errorbar I am using

scatter plot and for line chart I am using series plot. Is there a way to add some space so that these error bars don't look

overlapped ? 


Accepted Solutions
Solution
a month ago
SAS Super FREQ
Posts: 1,265

Re: Space between error bars

Use GroupDisplay=Cluster and set ClusterWidth=0.2 (or small value).  See my response to recent similar question: 

https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/sgplot-vline-jitter-standard-error-bars/m-...

 

View solution in original post


All Replies
Solution
a month ago
SAS Super FREQ
Posts: 1,265

Re: Space between error bars

Use GroupDisplay=Cluster and set ClusterWidth=0.2 (or small value).  See my response to recent similar question: 

https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/sgplot-vline-jitter-standard-error-bars/m-...

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 94 views
  • 0 likes
  • 2 in conversation