Skip to content

Axes limits in rgl.surface.

2 messages · Todd Remund, Duncan Murdoch

#
On 12/17/2007 2:29 PM, Todd Remund wrote:
You'll need to do the trimming yourself.  There isn't currently any 
support for user-controlled clipping regions in rgl.

That is:  for the usual case where x and y are vectors, to limit x or y 
to a certain range, just take a subset of those values, and a subset of 
the rows or columns of z.  To limit the range of z, set out of range 
entries to NA.  It will probably look ugly because it will get a very 
ragged edge.

It appears that the NA handling for the case where x or y is a matrix 
leaves something to be desired.

Duncan Murdoch