Hi, I've been really struggling with this.

If I have a vector like
dat <- c(0,0,0,0,1,1,1,0,0,0,1,1,0,0,0,1,0,0,0)

I want to plot each element as a colored rectangle (red=1, blue=1) in the
right order, so they all stack up forming a vertical column on the graph.
Sort of like a building, with each floor in the appropriate color.

Any ideas?
I've tried using ggplot and geom_tile, but my data has a million elements
and the plots take forever to generate.
I've also tried using a heatmap, but I need 2 columns at least, and I only
have 1.

	[[alternative HTML version deleted]]

