Geom.rectbin
Draw colored rectangles.
Aesthetics
color
Either
x_min
x_max
y_min
y_max
Or
x
y
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)