How to create matrix of rgb values from a plot object

Fyi, Tim Holy seems to recommend exactly that in another post.