[R] How to plot a image with restrictions?
    Cleber N.Borges 
    klebyn at yahoo.com.br
       
    Thu Jun 22 03:21:20 CEST 2006
    
    
  
Hello All!
How to plot a image ( image function )
with restrictions, like a polygon??
Thanks in advance!
Cleber N. Borges
##### problem example
x <- y <- seq(-4*pi, 4*pi, len=27)
r <- sqrt(outer(x^2, y^2, "+"))
image( z )
contour(z, add = TRUE, drawlabels = FALSE)
m=scan()
0.2  0.2
0.8  0.2
0.5  0.8
m = matrix(m,nr=3,byrow=T)
polygon( m, lwd=5 )
    
    
More information about the R-help
mailing list