-
Latest posts by 22
Subject Views Posted 2625 11-01-2015 12:23 AM 2635 10-29-2015 01:46 PM 2643 10-29-2015 11:56 AM 2669 10-29-2015 08:46 AM 3893 10-04-2015 04:17 PM 3895 10-04-2015 04:11 PM 3941 10-01-2015 02:15 AM 3942 10-01-2015 02:13 AM -
Activity Feed for 22
- Posted Re: Proc GPLOT Broken Curves on ODS and Base Reporting. 11-01-2015 12:23 AM
- Posted Re: Proc GPLOT Broken Curves on ODS and Base Reporting. 10-29-2015 01:46 PM
- Posted Re: Proc GPLOT Broken Curves on ODS and Base Reporting. 10-29-2015 11:56 AM
- Posted Proc GPLOT Broken Curves on ODS and Base Reporting. 10-29-2015 08:46 AM
- Posted Re: Manhattan-Like chart generation on Graphics Programming. 10-04-2015 04:17 PM
- Posted Re: Manhattan-Like chart generation on Graphics Programming. 10-04-2015 04:11 PM
- Posted Re: Manhattan-Like chart generation on Graphics Programming. 10-01-2015 02:15 AM
- Posted Manhattan-Like chart generation on Graphics Programming. 10-01-2015 02:13 AM
11-01-2015
12:23 AM
Hi ballardw,
Sorry for the late response.
I tried not to constrol the appearance of Y-axis but felt in the same issue. I removed the (order=) keyword from axis statement. The graph gave a range of (0-1) for each axis (X and Y) which I think is taken from the data points. Hence, once gain, SPLINE generated out of range (relative to data points) points whihc caused the curve to break in more than one place on the edges!
... View more
10-29-2015
01:46 PM
You're absolutely right! This is my bad! I should have thought about that!
Anyhow, do you know if there is a way to define the range in axis statement (order=) automatically without any manually intervention? Therefore, SAS checks the highest and lowest values SPLINE would generate and sets them automatically?
Regards
... View more
10-29-2015
11:56 AM
Unfortunately, this is not the case.Here is the data in case you were unable to open it:
Green_curve
Blue_Curve
Red_Curve
0.00
0.00
0.00
0.43
0.01
1.00
0.43
0.02
1.00
0.43
0.03
1.00
0.43
0.05
1.00
0.57
0.07
1.00
0.57
0.09
1.00
0.57
0.13
1.00
0.57
0.18
1.00
0.86
0.24
1.00
0.86
0.30
1.00
0.86
0.36
1.00
0.86
0.42
1.00
1.00
0.53
1.00
1.00
0.68
1.00
1.00
0.87
1.00
1.00
1.00
1.00
1.00
1.00
1.00
... View more
10-29-2015
08:46 AM
Hi all,
I'm trying to create a normal X,Y plot using proc gplot and spline as interpoation. I found in more than one case that the generated curves are some how broken (not fully connected) which should not be the case. I also changed spline (interpol = SMn) and same thing occurs. I attached the dataset which includes the data as well as a PDF file that includes the generated (broken) curves. Please have a look to both Red and Green curves as they're not fully connected. Appreciate your assistance.
regards
Code:
title ' '; goptions reset=symbol; PROC GPLOT DATA= MyData; symbol1 interpol=JOIN color=blue line=1 width=3; symbol2 interpol=SPLINE color=Red line=1 width=3; symbol3 interpol=SPLINE color=Green line=1 width=3; axis1 order=(0 to 1 by 0.1) offset=(2,2) label= ('X-Axis'); axis2 order=(0 to 1 by 0.1) offset=(2,2) label= ('Y-Axis'); legend1 value= ('Blue Curve' 'Red Curve' 'Green Curve'); plot (Blue_Curve Red_Curve Green_Curve)*(Blue_Curve) / overlay legend= LEGEND1 autohref haxis=axis1 hminor=1 vaxis=axis2 vminor=1; run;
... View more
10-04-2015
04:17 PM
Hi MikeZdeb,
I'd like to thank you too for the professional answer you provided. This has also an added value as you've used different proc (proc gchart) which did a similar result but with a slightly different way.
Thanks a lot MikeZdeb. I'd also consider this as a full answer to my query.
... View more
10-04-2015
04:11 PM
Hi Bruno,
Thanks for your time and I really appreciate your professional answer as a complete solution including recreating the data and perform all necessary steps to reach to proc sgplot. In addition, doing the sgplot using two approaches (though I liked the transposed data as it shortened the code even with the extra step of proc transpose).
Thanks a lot that is exactly what I want.
Last small question, Can I control the vbar colors for each group?
Regards
... View more
10-01-2015
02:13 AM
Hi all, I need a hand in producing a bar chart that is Manhattan-like. X-axis is one of the variables in my dataset and Y-axis should be generated automatically with a suitable low/high limits where these limits would be again taken from the values of the variables represented by the bar chart. I tried to attach an Excel sheet that shows exactly what I mean (3 series of data [3 variables PCT_222, PCT_233, PCT_244) all together in the same plot and their X-axis is a variable called (Class) while their Y-axis is generated automatically using their values all together), but I was unable to due to the fact that the third shows .xlsx as invalid extension. Therefore, I attached a PDF that is generated by the Excel sheet. I'm not sure if this is direct in SAS or not and I hope so.I searched before writing here but could not find any useful resource which shows somthing similar to my requirement and a straight answer to it. Therefore, I hope the Graph/ODS experts here can assit in resolving this problem which might turned to be a trivial one. Regards
... View more