Re: [R] "Dumb" plots?

About this list Date view Thread view Subject view Author view Attachment view

From: Barry Rowlingson (B.Rowlingson@lancaster.ac.uk)
Date: Wed 07 May 2003 - 00:38:11 EST


Message-id: <3EB7C8D3.2020708@lancaster.ac.uk>

Robert Lundqvist wrote:
> Is there any neat way of producing character-based "dumb" plots in R
> rather than the ordinary very good-looking graphics? It would at times be
> both easy and sufficient to include such crude graphs in HTML pages rather
> or similar.

  You could always use Splus version 3. It had a crt() and a printer()
graphics device, which produced ascii plots. I'd paste an example here
but doubtless the widespread use of proportional fonts would make it
look like what we used to call 'line noise' back in the old days.

  It can do simple line and point plots, but dont expect too much:

> printer()
> image(matrix(runif(100),10,10))
Error in image.default(matrix(runif(100), 10, 10)): Inactive device or
         unimplemented device primitive
Dumped
Error in image
>

  For those of you with proportional fonts, here's 10 data points with a
fitted linear model:

      25.........................................
        . *.
        . ...
     20.. ...
        . *.. *
        . ...
     15.. * ...
  y . * ... *
        . * ...
     10.. ...
        . * ...
        . ...
      5..* ...
        . ...
        .. *
        ........................................
             2 4 6 8 10

                           x

  Since R is open source, if you really really want this, you could
either write a 'crt()' graphics device for R, or if you really really
really want it, pay someone to do it!

Baz

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:45 EST