[R] carpet plots

David Winsemius dwinsemius at comcast.net
Mon Jul 2 21:11:16 CEST 2012


On Jul 2, 2012, at 2:05 PM, Richard Müller wrote:

> Hi all,
> I wonder why there is so little software for carpet plots (german:
> Rasterdiagramm) (Three dimensional plot (x, y, z), the 3rd dimension
> (z) symbolized by colourgradients). Besides from one or the other non
> free software I only found an OpenOffice macro, a combination of
> Gnuplot and Excel (an Excel macro calling gnuplot)
> (http://www.johannes-hopf.de/2009/12/carpet-plot-version-1-3/9 and
> Quikgrid (http://www.galiander.ca/quikgrid/) which I use for
> bathymetric maps.
>
> Though I use one or two R scripts I have no deeper knowledge. Because
> I think "That's a thing R can do!", I suppose, there are scripts for
> this purpose. Perhaps one of you knows such a script. I would be very
> grateful if you could point me to some information on this subject.
>

You need to expand you search list:

?heatmap
?levelplot
?contour
.... and many others


Here's an example with base graphics cobbled together from the last  
example on help(contour)

image(x,y,volcano)
line.list <- contourLines(x, y, volcano)
contour(x, y, volcano, col = tcol[2], lty = "solid", add = TRUE,
              vfont = c("sans serif", "plain"))
templines <- function(clines) {
   lines(clines[[2]], clines[[3]])
}
invisible(lapply(line.list, templines))

-- 
David.


> Richard
>
> -- 
> Richard Müller . Am Spring 9 . D-58802 Balve
> www.oeko-sorpe.de
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list