Click here to see the SAS code. Click here to see the example. --------------------------------------------------------------- This is the sas/graph version of the plot from p. 961 of the 'Science' magazine (10Nov2006). (Note that the data values are just estimates, since I don't have the real data). Here is some info about the plot, from the magazine... "Functional distribution of genes expresed in the embryo. The bar chart displays the percentage of annotated genes of different functional categories expressed in the sea urchin embryo. The funcitnal categories are derived from a manual curation database (5) and are shown in table S3. The number at the top of each bar represents the total number of annotated genes in the coorresponding category, including all expressed and unexpressed ones. Trans., transcription factors; Signal, signaling genes; Process, basic cellular processes such as metabolism; Cytoskelet., ctyo- skeletal; Fertiliz., fertilization; Biominer., biomineralization." The sas/graph 'tricks': Note that I used "proc gbarline", so that I can get the tickmarks on the righ-axis (these are from a 'fake' line, with all values set to zero). I could similarly do this with gplot, using a wide 'needle' interpolation line, and a plot2 for the right-axis, but the 'needle' bars don't support html mouse-over and drilldown (since they're technically 'lines'). The numbers at the top of the bar are annotated text (I would normally use the gchart 'outside=statistic', but the number printed above the bar is not really related to any statistic used to calculate the bar height). Also, to get the tickmarks on the 'inside' of the plot, I used a negative major & minor tickmark height in the axis statements. Back to Samples Index