Loris Bennett
2016-Aug-08 08:12 UTC
[R] Visualising multiple temporal periods each with an associated value
Hi, I want to visualise temporal events as rectangles, one side of the rectangle being the length of the event, the other being the size of an integer variable. The position of the rectangle along the time axis would be determined by the time of the even, the position on the other axis is essentially arbitrary. This would look like the graph in the lower right of the following image: http://apps.fz-juelich.de/jsc/llview/html/images/llview_snapshot1.png I can probably cobble something together in raw R to do this, but I assume that this kind of plot has a name and that there may already be packages to do this. Can anyone suggest what one would call this sort of plot? Cheers, Loris -- Dr. Loris Bennett (Mr.) ZEDAT, Freie Universit?t Berlin Email loris.bennett at fu-berlin.de
Jim Lemon
2016-Aug-08 22:19 UTC
[R] Visualising multiple temporal periods each with an associated value
Hi Loris, This looks a lot like a Gantt chart with variable bar widths. I'll check it when I have a bit of time and repost. JIm On Mon, Aug 8, 2016 at 6:12 PM, Loris Bennett <loris.bennett at fu-berlin.de> wrote:> Hi, > > I want to visualise temporal events as rectangles, one side of the > rectangle being the length of the event, the other being the size of an > integer variable. The position of the rectangle along the time axis > would be determined by the time of the even, the position on the other > axis is essentially arbitrary. This would look like the graph in the > lower right of the following image: > > http://apps.fz-juelich.de/jsc/llview/html/images/llview_snapshot1.png > > I can probably cobble something together in raw R to do this, but I > assume that this kind of plot has a name and that there may already be > packages to do this. > > Can anyone suggest what one would call this sort of plot? > > Cheers, > > Loris > > -- > Dr. Loris Bennett (Mr.) > ZEDAT, Freie Universit?t Berlin Email loris.bennett at fu-berlin.de > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Jim Lemon
2016-Aug-09 00:04 UTC
[R] Visualising multiple temporal periods each with an associated value
Hi Loris, If I understand what you want, it seems to be a combination of a Gantt chart and a sizetree. The Gantt chart provides the horizontal extent of the rectangles and the sizetree the vertical extent by assigning relative heights to the initial rectangles and dividing these into subsets as time evolves. That approach would not allow rectangles to expand over time, but that could be accommodated. It's more complicated than either of the two, but I think it can be done. Jim On Tue, Aug 9, 2016 at 8:19 AM, Jim Lemon <drjimlemon at gmail.com> wrote:> Hi Loris, > This looks a lot like a Gantt chart with variable bar widths. I'll > check it when I have a bit of time and repost. > > JIm > > > On Mon, Aug 8, 2016 at 6:12 PM, Loris Bennett > <loris.bennett at fu-berlin.de> wrote: >> Hi, >> >> I want to visualise temporal events as rectangles, one side of the >> rectangle being the length of the event, the other being the size of an >> integer variable. The position of the rectangle along the time axis >> would be determined by the time of the even, the position on the other >> axis is essentially arbitrary. This would look like the graph in the >> lower right of the following image: >> >> http://apps.fz-juelich.de/jsc/llview/html/images/llview_snapshot1.png >> >> I can probably cobble something together in raw R to do this, but I >> assume that this kind of plot has a name and that there may already be >> packages to do this. >> >> Can anyone suggest what one would call this sort of plot? >> >> Cheers, >> >> Loris >> >> -- >> Dr. Loris Bennett (Mr.) >> ZEDAT, Freie Universit?t Berlin Email loris.bennett at fu-berlin.de >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code.