[R] plot character
    Duncan Murdoch 
    dmurdoch at pair.com
       
    Tue Jul 22 19:31:21 CEST 2003
    
    
  
On Tue, 22 Jul 2003 17:59:24 +0100, "Luis Miguel Almeida da Silva"
<lsilva at fc.up.pt> wrote :
>Dear helpers
> 
>Is it possible to plot with a desired character? For example "tr" for training error and "te" for test error.
>I tried 
> 
>plot(x,y,pch="tr")
> 
>but only appears "t" in the plot
Use text() instead:
 plot(x, y, type='n')
 text(x, y, "tr")
The first line sets up the axes, etc; the second one actually plots
the strings.  You can plot a whole character vector of different
values if you like.
Duncan Murdoch
    
    
More information about the R-help
mailing list