Skip to content
Prev 155137 / 398513 Next

how to draw the legend about color from 3d picture

Look at the color.legend function in the plotrix package to see if it does what you want.  You may want to use the layout function to split the graphics device into 2 sections, one for the persp plot and the other to hold the legend.

Hope this helps,

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111