Re: [R] Hunting a histogram variant
Hmmno... The labels on a stem-and-leaf plots are the values. This is just the measurement number: Observations #2,5,6,9 from level 1 had a temperature between 89 and 90, making up the penultimate column of that histogram. I would conjecture that, like stem-and-leaf, this has fallen out of favour because it doesn't scale well to larger samples. It is fine with 64 observations like this, but with (say) four times as many boxes, you'd lose all legibility. -pd > On 22 Jun 2017, at 06:16 , Bert Gunter wrote: > > ?stem > > for something close and built in. > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Wed, Jun 21, 2017 at 9:01 PM, S Ellison wrote: >> >> I'm looking for a histogram variant in which data points are plotted as >> labelled rectangles 'piled up' to form a histogram. I've posted an example >> at https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0 >> >> It seems to have a long pedigree, as I see it (as in this example) in >> documents going back beyond the '80s. But I've not seen it in recent >> textbooks. So it may be one of those older graphical displays that's just >> fallen out of use. >> >> General questions: >> i) Does this thing have a name? >> ii) Can anyone point me to a literature source for it? >> >> ... and the R question: >> ii) Is it already hiding somewhere in an R package?* >> >> S Ellison >> >> *If it's not, I'll be adding it to one, hence the hunt for due credit/sources >> >> >> >> *** >> This email and any attachments are confidential. Any u...{{dropped:8}} > > __ > R-help@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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-help@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.
Re: [R] Hunting a histogram variant
and I almost forgot Derek Ogle's histStack again in the plotrix package. Jim On Thu, Jun 22, 2017 at 2:01 PM, S Ellison wrote: > > I'm looking for a histogram variant in which data points are plotted as > labelled rectangles 'piled up' to form a histogram. I've posted an example at > https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0 > > It seems to have a long pedigree, as I see it (as in this example) in > documents going back beyond the '80s. But I've not seen it in recent > textbooks. So it may be one of those older graphical displays that's just > fallen out of use. > > General questions: > i) Does this thing have a name? > ii) Can anyone point me to a literature source for it? > > ... and the R question: > ii) Is it already hiding somewhere in an R package?* > > S Ellison > > *If it's not, I'll be adding it to one, hence the hunt for due credit/sources > > > > *** > This email and any attachments are confidential. Any u...{{dropped:8}} __ R-help@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.
Re: [R] Hunting a histogram variant
Hi, This looks very much like a waffle plot, which can be performed with color2D.matplot in the plotrix package. At the moment, the function fill.corner is used to produce the matrix, but this could be generalized to produce any shape of "waffle". The value display is already part of color2D.matplot. Jim On Thu, Jun 22, 2017 at 2:01 PM, S Ellison wrote: > > I'm looking for a histogram variant in which data points are plotted as > labelled rectangles 'piled up' to form a histogram. I've posted an example at > https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0 > > It seems to have a long pedigree, as I see it (as in this example) in > documents going back beyond the '80s. But I've not seen it in recent > textbooks. So it may be one of those older graphical displays that's just > fallen out of use. > > General questions: > i) Does this thing have a name? > ii) Can anyone point me to a literature source for it? > > ... and the R question: > ii) Is it already hiding somewhere in an R package?* > > S Ellison > > *If it's not, I'll be adding it to one, hence the hunt for due credit/sources > > > > *** > This email and any attachments are confidential. Any u...{{dropped:8}} __ R-help@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.
Re: [R] Hunting a histogram variant
Two things to look at are ?monthplot which shows seasonal subseries plotted on an overall plot. The parallel to your example is small histograms plotted on an overall plot. That goes back (through the reference in the Blue Book (Becker, Chambers, and Wilks)) to Bill Cleveland and Irma Terpenning in JASA 77, 377, 52-62 (1982). Starting from scratch I would be inclined to build your design directly in grid, to place the subgraphs in the main graph, and then I would use lattice to design the subgraphs. See Paul Murrell's book Figure 7.18 (First Edition) showing plots of temperature for cities in Australia. Rich On Thu, Jun 22, 2017 at 12:01 AM, S Ellison wrote: > > I'm looking for a histogram variant in which data points are plotted as > labelled rectangles 'piled up' to form a histogram. I've posted an example at > https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0 > > It seems to have a long pedigree, as I see it (as in this example) in > documents going back beyond the '80s. But I've not seen it in recent > textbooks. So it may be one of those older graphical displays that's just > fallen out of use. > > General questions: > i) Does this thing have a name? > ii) Can anyone point me to a literature source for it? > > ... and the R question: > ii) Is it already hiding somewhere in an R package?* > > S Ellison > > *If it's not, I'll be adding it to one, hence the hunt for due credit/sources > > > > *** > This email and any attachments are confidential. Any u...{{dropped:8}} __ R-help@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.
Re: [R] Hunting a histogram variant
?stem for something close and built in. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Jun 21, 2017 at 9:01 PM, S Ellison wrote: > > I'm looking for a histogram variant in which data points are plotted as > labelled rectangles 'piled up' to form a histogram. I've posted an example at > https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0 > > It seems to have a long pedigree, as I see it (as in this example) in > documents going back beyond the '80s. But I've not seen it in recent > textbooks. So it may be one of those older graphical displays that's just > fallen out of use. > > General questions: > i) Does this thing have a name? > ii) Can anyone point me to a literature source for it? > > ... and the R question: > ii) Is it already hiding somewhere in an R package?* > > S Ellison > > *If it's not, I'll be adding it to one, hence the hunt for due credit/sources > > > > *** > This email and any attachments are confidential. Any u...{{dropped:8}} __ R-help@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.
[R] Hunting a histogram variant
I'm looking for a histogram variant in which data points are plotted as labelled rectangles 'piled up' to form a histogram. I've posted an example at https://www.dropbox.com/s/ozi8bhdn5kqaufm/labelled_histogram.png?dl=0 It seems to have a long pedigree, as I see it (as in this example) in documents going back beyond the '80s. But I've not seen it in recent textbooks. So it may be one of those older graphical displays that's just fallen out of use. General questions: i) Does this thing have a name? ii) Can anyone point me to a literature source for it? ... and the R question: ii) Is it already hiding somewhere in an R package?* S Ellison *If it's not, I'll be adding it to one, hence the hunt for due credit/sources *** This email and any attachments are confidential. Any use...{{dropped:8}} __ R-help@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.