[R] multiple plot layout and filled contour

Roger D. Peng rpeng at jhsph.edu
Thu Sep 25 14:54:45 CEST 2003


As far as I know, you can't use layout() with filled.contour() because 
filled.contour() itself uses layout().  You might be able to use 
levelplot() in the 'lattice' package.

-roger

lutz.thieme at amd.com wrote:

>Hello everybody,
>
>Could anybody give me a hint how I can use "layout" and "filled.contour"  (or  "image"
>plot with a color legend) together, please?
>What I want to do is something like the following example (Two or more plots with a 
>legend for each at one page):
>
>data(volcano)
>layout(matrix(1:2, 1, 2, byrow = TRUE))
>for (i in 1:2) {
>	filled.contour(i*volcano, color = terrain.colors, asp = 1)
>}
>
>Thank you in advance.
>
>
>	Kind regards,
>
>	Lutz
>
>
>	Lutz Thieme
>	Product Engineering
>	AMD Saxony Limited Liability Company & Co. KG
>	M/S E22-PE, Wilschdorfer Landstr. 101
>	D-01109 Dresden, Gemany
>	phone:	+ 49-351-277 -  4269
>	fax:		+ 49-351-277-9-4269
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>  
>




More information about the R-help mailing list