SAS ODS Graphics Designer by Example: A Visual Guide to Creating Graphs Interactively by Sanjay Matange & Jeanette Bottitta

SAS ODS Graphics Designer by Example: A Visual Guide to Creating Graphs Interactively by Sanjay Matange & Jeanette Bottitta

Author:Sanjay Matange & Jeanette Bottitta [Matange, Sanjay]
Language: eng
Format: azw3, mobi, pdf
Publisher: SAS Institute
Published: 2016-12-14T16:00:00+00:00


Styles and Style Elements

Overview of Styles and Style Elements

The visual properties of a graph and its plots are derived from the style that is applied to the graph. The following definitions summarize styles and style elements:

Style

is a collection of style elements such as GraphBackground, GraphTitleText, GraphAxisLines, and so on, which affect particular objects in the graph. Style elements are used to render particular graph elements such as bars, lines, markers, text, and so on. Style elements have descriptive names to help identify which graph object they affect.

The applied style affects all aspects of a graph. There are a number of styles to choose from.

Style element

is a collection of visual attributes such as Color, LineStyle, LinePattern, MarkerSymbol, Font, and so on. For example, the style element used for box plot whiskers consists of attributes for color, line pattern (such as dotted or dashed), and line thickness.

By default, the visual attributes for each object in the graph are derived from a specific style element within the applied style.

You can customize the appearance of your graph by setting graph properties or the individual properties for a plot, axis, or some other part of the graph as follows:

● Apply a different style. Changing the applied style is the easiest way to change a graph’s appearance. All aspects of the graph are changed. You can change the applied style from the Graph Properties dialog box, which is discussed later in this chapter.

● Change the size of the graph. This is changed from the Graph Properties dialog box.

● Apply a different style element to one or more graph elements. If you want more granular control over a plot, you can change the style element applied to a particular object, such as to a kernel density curve. This is what was done in “Set Plot Properties” in Chapter 3.

● Specify hardcoded values for one or more graph elements. For example, suppose you change the style element associated with a kernel density curve. You can also change any of the attributes of the density curve, such as its line color, pattern, and thickness, effectively overriding the attributes of the style element.

Note: When you override an attribute, that attribute is no longer derived from the specified style element. If you later change the style that is applied to the graph, the overridden attribute might conflict with the new style.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.