[R] filled contour plots

From: Fernando De Sales <fhds2000_at_yahoo.com>
Date: Wed, 23 Apr 2008 13:44:51 -0700 (PDT)

   hello everyone,
   I was wondering if anybody can help me solve 2 problems related to the function filled.contour.

   I am entering the following R command:

filled.contour(xx,yy,P1, nlevels=20,color=cm.colors,

     plot.axes={
     contour(xx,yy,P1,add=T,col="grey",
            nlevels=20, drawlabels=F)
            axis(1,1:length(xx),labels=xlabels)
            axis(2,1:length(yy),labels=ylabels)
               })

which results in the figure attached. Overall the figure looks great. However, my 2 question are:

  1. how can I make sure that the contour lines match the shading? you can see from the figure (center left) there's a contour missing.
  2. how can I get smoother contours/shading, without so many sharp angles?

   I appreciate any help from you.
   thank you so very much for the attention.

   F. DeSales    



Be a better friend, newshound, and



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 Wed 23 Apr 2008 - 20:48:05 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 Wed 23 Apr 2008 - 22:30:32 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