Question: How do I plot the DCT of a signal?

I'm currently working on compressing audio files using DCT to remove the frequencies that only contribute marginally to human perception of the sound. To do this, I'd like to do as the attached image describes. Sadly, I'm having trouble plotting the values of the DCT-coefficients as done in figure 6.4 b) and d). 

Any help would be kindly appreciated.

Please Wait...