Click here to see the SAS code.
Click here to see the example.
---------------------------------------------------------------
In this example, I create a bunch of fake data, and then
assign a bunch of macro variables x1=x5 and y1=y5
telling what the starting & ending points of my
rectangular/colored areas on the plot are.
I create an annotate data set using annotated colored "bar"
areas to show the color for each rectangular area on the plot.
Then, for each data observation, I determine which color
box it should be in, and assign it's x/y as the "center"
of that area, and then use "proc sql" to help me summarize
how many data observations fell into each colored box.
I draw the plot axes with gplot, and then annotate the
colored boxes, and the summary counts.
Back to Samples Index