Geom.rectbin

Draw colored rectangles.

Aesthetics

Either

Or

In the former case, rectangles defined by x_min, x_max, y_min, y_max are drawn, in the latter, equal sizes squares are centered at x and y positions.

Examples

plot(dataset("Zelig", "macro"), x="Year", y="Country", color="GDP", Geom.rectbin)
Year 1960 1970 1980 1990 2000 10 5 15 -5 0 GDP United States Canada United Kingdom Netherlands Belgium France West Germany Austria Italy Finland Sweden Norway Denmark Japan Country