Hi,
lets say I want to visualize which files take up the space on my hard drive. So I have collected the data an found the following vector which represents the whole capacity of my hdd
1 1 1 1 0 0 1 1 1 1 2 2 2 2
where 1 means this sector on my hdd is occupied by a file of type 1, 0 means unoccupied and 2 means occupied by file type 2.
Now I want to visualize this data. I'd like to represent the whole hdd as a bar of fixed size, the colour of the bar should represent the occupying file type. So at the first part of the bar is red (for type 1), than grey for type 0 then again red and the last part of it is blue for type 2.
How do I do this? I have tried stacked bars, but I didnt manage to stack them, when I'm only passing a one-dimensional vector.
Regards, Martin