Hi, I want to draw a contour plot of the following function: z = y*x + epsilon, where x ~ N(y, 1) and epsilon ~ N(0, sigma) with sigma fixed (e.g. 1) But didnt manage to feed "contour" with the right input. Thanks for your help. Armin
On Jul 22, 2009, at 10:17 AM, axionator wrote:> Hi, > I want to draw a contour plot of the following function: > > z = y*x + epsilon, > > where x ~ N(y, 1) > and epsilon ~ N(0, sigma) with sigma fixed (e.g. 1) > > But didnt manage to feed "contour" with the right input. > > Thanks for your help. > ArminThe help page has an example that appears be straightforward. If you have made any attempt, then you should include it in your request. David Winsemius, MD Heritage Laboratories West Hartford, CT
That problem is that for every y I get a different x and thus cant create an array as in the help page examples. I was just wondering, whether there is a possibility to create such a contour plot easily without having to spend too much time with setting up a suitable matrix manually. Armin
Hi maybe package akima with function interp can help you Regards Petr r-help-bounces at r-project.org napsal dne 23.07.2009 11:04:25:> That problem is that for every y I get a different x and thus cant > create an array as in the help page examples. > I was just wondering, whether there is a possibility to create such a > contour plot easily without having to spend too much time with setting > up a suitable matrix manually. > > Armin > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.