[R] contour plot - smooth lines

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Dec 27 16:46:03 CET 2008



tommaso.letterio at unifi.it wrote:
> Dear R-Users,
> I am using 'contour' to plot a graph using values x,y and a matrix z.
> I would like to obtain 'smooth lines' instead of no-smooth contour lines.
> I tried with filled.contour too.
> In a Post I found
> yy <-predict(interpSpline(x, y))
> I could use that method for each range that I want to plot but I hope to 
> find a easier method.

You could also increase the resolution, but that makes your graphics 
rather huge...

Uwe Ligges


> 
> Thank you
> 
> Tommaso Letterio
> DIAF - UniFi
> Via San Bonaventura 13
> Firenze (IT) - 50145
> +39-055-3288605
> 
> ______________________________________________
> 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.



More information about the R-help mailing list