Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAmySGOJRWZwCPaCm17=30xgcLk4Kgii237XOJAyLgWBSO0JFw@mail.gmail.com>
Date: 2011-11-16T17:43:11Z
From: R. Michael Weylandt
Subject: Contour on top of 2d histogram
In-Reply-To: <C3C60AEABD32D34E938CD1A22E8BD4C4483FC7EC@aai-exch-mbx4.campus.unibe.ch>

Try the add = TRUE argument to contour.

Michael

On Wed, Nov 16, 2011 at 12:35 PM, Sramkova, Anna (IEE)
<anna.sramkova at iee.unibe.ch> wrote:
> Hi all,
>
> I would like to plot one data set as a 2d histogram and another one as a contour. I can do it separately with the
> "hist2d" and "contour" functions, but I wonder if there is a way to combine these two plots into a single one (the ranges of the two plots are the same).
>
> Any suggestions?
>
> Thanks,
>
> Anna
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>