[R] Text-based graphics/plots

Karl Ove Hufthammer Karl.Hufthammer at math.uib.no
Tue Apr 15 16:39:27 CEST 2008


When discussing statistics in e-mail based discussion groups, or in
newsgroups, it is sometimes useful to include simple, text-based
statistical graphics. Here is an example, a histogram (only useful
with a fixed-width font, obviously).


                                    :.....
                                 ..:::::::::.
                               .:::::::::::::::
                           ...:::::::::::::::::::
             . . .........::::::::::::::::::::::::::.........
        -------+---------+---------+---------+---------+---------+----
             465       480       495       510       525       540

Other useful plots would be boxplots, scatterplots (even Trellis-like,
with multiple panels), line plots, and perhaps even levelplots.

Does there exist a package containing such functions, or perhaps
a text-based output device?

I already know about the 'stem' function, which is very nicely
implemented, BTW. Here is some sample output (normal distribution,
with decimal point at '|').

  46 | 8
  47 | 123799
  48 | 01222234456
  49 | 001222333444678
  50 | 1233334457788
  51 | 00022556667778999
  52 | 0112223
  53 | 79
  54 | 049

-- 
Karl Ove Hufthammer



More information about the R-help mailing list