Adding Graphics to PROC TABULATE Tables

We have changed fonts, colors, and other formatting aspects of PROC TABULATE output. However, so far we've just been working with the basic output. This example shows how to add something new to the output: a graphic.

In this example, we are going to place a graphic image in the table box. A graphic can be added in the same way you modified the style attributes for the box in a previous example. The style attribute information is added with a STYLE= suboption on the BOX= option. The PREIMAGE= style attribute enables you to name an image that precedes the text in the cell.

ODS HTML BODY='tabpic.html' STYLE=sasweb; proc tabulate data=furniture; class Type Material; var Price; table Type='Table Type'* Material='Construction', ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.