Hi all!
I am a grad stat student and is fairly new in using R. I am doing a
regression tree in one of my problem sets. I have already identified the
cut-points (using Stata) for the regression. My problem is how to graph the
fitted values of z against the independent variables x and y. Basically, I
want to graph the following:
z=87.67        if 0<x<=29 & 0<y<=48
z=75            if 0<x<=29 & 48<y<=62
z=67            if 29<x<=36 & 0<y<=62
z=56.71        if 36<x<=45 & 0<y<=62
z=40.8         if 36<x<=55 & 0<y<=62
I have some idea (still to be implemented) on how to graph them piece-wise
using "persp". My question is this:how do one combine multiple 3D graphs
(using "persp") in R? better yet, is there a way to graph them all in just
one go?
Any help would be welcome. Many thanks in advance.

Cheers,
Mykel

-- 
"I am most anxious for liberties for our country... but I place as a prior
condition the education of the people so that our country may have an
individuality of its own and make itself worthy of liberties... " Jose
Rizal,1896

        [[alternative HTML version deleted]]

______________________________________________
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