In gnuplot, how do you plot flattened tables that fit the form of aggregated key-value pairs? For example given this tab-delimited file, how could I plot a bar graph for type=foo, with one bar per version?
type version count
foo a 1
foo b 2
foo c 3
bar a 3
bar b 2
bar c 1
baz a 0
baz b 2
baz c 2
Extra credit: How would I plot k subplots, one for each type (e.g. foo, bar, and baz?