On Sat, Sep 11, 2010 at 2:28 AM, Raffaello Vardavas
<r_varda...@hotmail.com> wrote:
>
> Dear R help,
>
> Suppose I have a dataframe with three columns named  p, v and C.
>
> Here C is a function of both p and v.  I can plot the surface C(p,v) using 
> the package lattice using the function wireframe.
>
> Now if I have another dataframe - with 2 columns named p_ind and v_ind and 
> pind is a function of v_ind.
>
> I would  like to overlay the plot of the curve p_ind, v_ind and C(p_ind, 
> v_ind) onto my previous plot.
>
> I haven't found a way to do this.

This is going to be fairly difficult with lattice. I would suggest
trying the rgl package instead.

-Deepayan

______________________________________________
R-help@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.

Reply via email to