Hi Sanjay- Thanks for weighing in. I appreciate your time. For the benefit of others who might stumble across this thread, and to clarify what it is I'm trying to achieve, allow me to lay out the history of this question. What I am trying to achieve is to have a series plot overlaid against colored bars representing periods of time. There is a very clear example of how to do this elsewhere; the example shows Microsoft stock prices over time against different Windows release availability periods as represented by colored bars. This is achived using BlockPlots in GTL. The difference between this and what I'd like to do is that I want to allow for overlapping event durations. The example I've been using in this forum is showing MS stock price against Windows version eras as well as Apple Mac OS eras, but you could imagine other situations. Maybe you want to show systolic blood pressure readings over time, and want to capture different medications or doses as well as lifestyle changes, like an exercise regimen or diet. The first attempt at doing this was to try to break up the plot area and show the two different event timelines in stacked colored blocks. This was a dead end for me, as Sanjay revealed that you can't overlay a series plot on a lattice plot. (that said, he posted a nice solution to that in this thread!). The next attempt for me was to use multiple block plots, with each one assigned a single event and color code. By setting the transparency around .6, the overlapping periods would show up as different colors. In the PDF I attached to my original post, I show two versions of one example. There is a period of time, represented by light red, that corresponds to the release and subsequent availability of Windows 2000. There is another period of time, represented by light blue, that corresponds to the release and subsequent availability of Mac OS X. The overlapping window of time (no pun intended) is purplish, and depends on which BlockPlot is drawn first. Red over blue shows up a little differently than blue over red, but they both illustrate the same idea of overlap. This was fine, and gave me the visualization of overlap I was looking for. However, as I was finalizing my code, I noticed that my transparency setttings didn't change anything. I realized that this is because the technique I was using to show individual blocks relies of alternating colors for different periods of time. Each different event window is represented by three points in time- the beginning of the timeline I'm plotting, the starting point for the event of interest, and the ending point for the event of interest (or the end of the graphing data, if that is sooner than that end of the event period or if it's unknown/unobserved). The way it's coded in my example, the periods of time before and after the event of interest (e.g., before windows 2000 came out and after windows xp came out) show up as white. But when you overlay a white block on top of a colored block, it mutes the color (assuming the transparency is less than 0). That's creating problems for my visual, and that's the issue that I was trying to resolve. So, in summary, I entertained the idea of showing stacked blocks, but abandoned that idea in favor of having overlapping blocks. I was able to create the graph I wanted, but have not been able to address the issue of getting washed out colors by overlaying white blocks on top of colored blocks. In the PDF attached to the original post, I show the exact graph I want. The issue is that, in the first one, the red bar is lighter than I'd like it to appear, and in the second one, the blue bar is lighter than I'd like it to appear. The middle looks fine, regardless of whether it's reddish purple or blueish purple. I have not tried to address this using BandPlots; I will try that next. If that doesn't work, based on the information at hand, it sounds like using the POLYGON plot is the best solution to my specific problem. I'll look into the BandPlot approach and check back to keep people up to speed. 9.4 is still a few months off for my team, so I hope this works! Thanks again to Dan and Sanjay for offerering suggestions and solutions, and most importantly, for your time and interest. I'll let you know how I make out with Band plots. I hope my explanaiton helps clarify why I'm still trying to tackle this. Thanks, Jed
... View more