dodge Collision Modifier (GPL)

Syntax

<element type>.dodge

<element type>. A valid element type.

Description

Moves graphic elements next to other graphic elements that appear at the same value, rather than superimposing them. The graphic elements are arranged symmetrically. That is, the graphic elements are moved to opposite sides of a central position. For point elements, this function is the same as dodge.symmetric. (See dodge.symmetric Collision Modifier (GPL) .)

Although dodged charts can look similar to clustered charts, they are not the same. Clustering changes the coordinates. Dodging only repositions graphic elements to avoid collisions. Therefore, a clustered chart allocates space for missing categories while a dodged chart does not.

Examples

Figure 1. Example: 2-D Dot plot
ELEMENT: point.dodge(position(bin.dot(salary*jobcat)))
Figure 2. Example: Dodged bar chart
ELEMENT: interval.dodge(position(summary.mean(jobcat*salary)), color(gender))