Does anyone know how to set the background color for an inset statement, either within the statement or through a template? It does not seem to have that option within the inset statement. Problem I have is the overlay of text disappears.
using a legend statement that I can put in free text that can go outside the graph?
Unfortunately, there is currently not a way to set the background color for the INSET statement in SGPLOT. I would recommend calling Technical Support and making a request for this feature. In the meantime, you can work around this by getting SGPLOT to generate the GTL code and modifying it to set the background color.
First, specify TMPLOUT="temp.sas" on the SGPLOT proc statement to generate the GTL in "temp.sas". In the GTL, you will find a LAYOUT GRIDDED that contains your inset values. On that LAYOUT GRIDDED, specify these two options:
At the end of the file, add this procedure call and submit the code:
statement it leaves out the the actual data. Plus it renders it as an image not as a RTF file as specified. I can change the GTL if I actually can find the parent style?
Or somehow create a new template with the LAYOUT GRIDDED option. I am a newbie at GTL, so it may take some doing....
You will need to wrap the PROC SGRENDER code with the same ODS statements as your SGPLOT code. Basically, the SGRENDER binds the data with the GTL template to create the graph. Be sure to replace "yourdataset" with the dataset from the SGPLOT code.