Questions tagged [sas-gtl]
13 questions
3
votes
1 answer
Boxplot by groups & blocks, with axis-aligned statistics
I've been building up a GTL template for a boxplot by group and timepoint blocks. I suspect that GTL in SAS 9.4 (TS Level 1M2) does not yet fully support such a multi-dimensional, axis-aligned BOXPLOT plus BLOCKPLOT combination.
If I'm wrong, I'd…

Dante
- 133
- 7
3
votes
1 answer
Use custom class instead of GraphValueText for textattrs option in PROC TEMPLATE?
Using SAS 9.3 and trying to adhere to DRY by defining a custom style and using it with multiple ENTRY statements throughout a PROC TEMPLATE's statgraph block.
Custom style:
proc template;
define style llama;
parent=styles.fancyPrinter;
style…

Snorex
- 904
- 12
- 29
2
votes
1 answer
Add Reference Lines to SAS Heatmap
I am making heatmaps through SAS. I would like to add reference reference lines (a horizontal and vertical) to the heatmap that split it up into quadrants. My code right now looks like this:
proc template;
define statgraph heatmapparm;
…

Code4Days
- 131
- 1
- 1
- 10
1
vote
1 answer
Separating Data in BOXPLOTPARAM (SAS GTL)
I have summarized data that I want to plot as box and whisker plots. I have added an "outlier" point to certain classes. I would like 2 separate plots, one with outliers and one without.
Here's what I've got:
data test;
input _stat_ $ _label_ $…

DomPazz
- 12,415
- 17
- 23
1
vote
0 answers
proc template color loess by group
I am trying to set the colors for the lines generated by proc template by group.
PROC TEMPLATE;
Define statgraph LOESS_BAR;
begingraph;
Layout Lattice/ columns=1 columnweights=(1) ;
Layout overlay/ xaxisopts=(griddisplay=off Label =…

Maggie
- 11
- 2
1
vote
2 answers
Showing markers on a series chart using the GTL
I'm trying to get markers to show up on my chart using the Graphics Template Language. I've tried adding the marker definitions to the style, to the seriesplot statement within a markerattrs= option statement, and also using discreteattrmaps for…

Robert Penridge
- 8,424
- 2
- 34
- 55
1
vote
0 answers
pipe (|) symbol in the survival plot in SAS 9.3(Windows)
While plotting Survival plot in SAS 9.3 (Windows Platform), I want to use GTL or PROC SGPLOT. I am able to get the things done using annotation and PROC GPLOT, but need to make a template I can use flexibly as needed. Hence, I've used proc template…

Priyesh Sura
- 113
- 1
- 10
1
vote
1 answer
How to disable axis labels in a PROC TEMPLATE's STATGRAPH block?
Suppose a SAS/GRAPH® GTL "DEFINE STATGRAPH" block has a "LAYOUT OVERLAY" block which produces a chart as shown below:
How do I adjust the template to remove the label "mm_yyyymm"? I'm not seeing any options under SERIESPLOT that would disable the…

Snorex
- 904
- 12
- 29
1
vote
1 answer
Remove overlapping X-axis labels on a barchart
Short of using annotations, I have been unable to find a reasonable way to prevent my x-axis labels from overlapping when using a barchartparm in SAS. From the documentation, they clearly state that barcharts use a discrete axis and the other axis…

Robert Penridge
- 8,424
- 2
- 34
- 55
0
votes
1 answer
Columns Created in Layout Lattice do not match the sort order of Bar Chart
I am using proc template to create a swimmers lane plot. I'm using layout lattice to create 3 columns, the first 2 are row identifiers and the third is the barchart. However, the first 2 columns do not match the sort order on the barchart. Below…
0
votes
1 answer
SAS SGPLOT or R ggplot2 - generate separate component for same plot
I would like to generate a plot as attached using SAS or R. Y-axis has a scale of 1 to 100 as a continuous value (with a break of 21 to 49) and X-axis has a categorical scale with two values.
I need to allocate 70% of the plot area to the bottom…

R007
- 101
- 1
- 13
0
votes
2 answers
Is there a format to hide negative sign from numbers in SAS?
I need to display negative numbers as positive (i.e. just hide the negative sign)
For that I'm currently using this format
proc format;
* 9 forces leading zeros, 0 doesn't;
* numbers are inversed so high = low;
picture posval
…

stallingOne
- 3,633
- 3
- 41
- 63
0
votes
2 answers
How do I convert HEXADECIMAL to DECIMAL in SAS?
I have:
A string with hexadecimal values every 4 positions
00F701C101C900EC01E001D2
I need:
Separate these values from 4 in 4 positions and convert to decimal numbers in this way:
247, 449, 457, 480, 466
My column can have up to 1200…

Vinicius Henrique
- 1
- 1
- 1