[R] Text-based graphics/plots

From: Karl Ove Hufthammer <Karl.Hufthammer_at_math.uib.no>
Date: Tue, 15 Apr 2008 16:39:27 +0200


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

______________________________________________
R-help_at_r-project.org mailing list
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.
Received on Tue 15 Apr 2008 - 15:07:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Apr 2008 - 16:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive