[R] filled contour plots

Fernando De Sales fhds2000 at yahoo.com
Wed Apr 23 23:30:45 CEST 2008


   The see the figure I refer to on my email, please
use this link:

http://us.f13.yahoofs.com/bc/480fa972_411e/bc/My+Documents/filled_contour_plot.pdf?bfy26DIBonZ1vybc

   thanks

>    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.
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and



More information about the R-help mailing list