[R] Odp: plot 4th variable contour lines on filled.contour

Petr PIKAL petr.pikal at precheza.cz
Tue Jun 2 13:33:05 CEST 2009


Hi

r-help-bounces at r-project.org napsal dne 02.06.2009 12:50:50:

> Hello,
> I have a dataset with 4 variables, each consisting of a vector, all with 

> the same length. I start by interpolating the first three variables 
> using the function "interp", and plot the interpolation successfully 
> using "filled.contour". I then interpolate the first two variables and a 

> fourth using "interp" again, but when I try to overlay the  contour 
> lines of this second interpolation on the first filled.contour plot, the 

> lines appear to be located wrongly on the plot, overlapping the colour 
bar!

Either use combination of image and contour or you need to get correct 
plotting area from filled.contour as it consist from 2 plots, see 
?filled.contour.

I remember this question was raised before and from search

"filled.contour overplot"

you can quickly get this answer

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/2211.html

Regards
Petr


> Any light shed on this matter would be most appreciated..
> Kind regards
> Ana
> de Moura Queiros,Ana Filipa         osp402 at bangor.ac.uk
> 
> -- 
> Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi,
> gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig
> gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y
> neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar
> unwaith a dilëwch y neges. Os na fwriadwyd anfon y neges atoch chi,
> rhaid i chi beidio â defnyddio, cadw neu ddatgelu unrhyw wybodaeth a
> gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i
> hanfonodd yn unig  ac nid yw o anghenraid yn cynrychioli barn
> Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu
> bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu
> 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn
> nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract
> rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa
> Cyllid Prifysgol Bangor.  www.bangor.ac.uk
> 
> This email and any attachments may contain confidential material and
> is solely for the use of the intended recipient(s).  If you have
> received this email in error, please notify the sender immediately
> and delete this email.  If you are not the intended recipient(s), you
> must not use, retain or disclose any information contained in this
> email.  Any views or opinions are solely those of the sender and do
> not necessarily represent those of the Bangor University.
> Bangor University does not guarantee that this email or
> any attachments are free from viruses or 100% secure.  Unless
> expressly stated in the body of the text of the email, this email is
> not intended to form a binding contract - a list of authorised
> signatories is available from the Bangor University Finance
> Office.  www.bangor.ac.uk
> 
> ______________________________________________
> 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