[R] how to set chart output size in rgl (surface3d)?
mandyx at gmail.com
Sat May 1 02:57:44 CEST 2010
i tried using your suggestion but still can't manipulate the dimensions such
that the chart fills the whole window. i've attached the picture i get when
i tried your suggested method. as you can see, there's still a lot of white
space around it.
is there anyway i can:
a) output to png ONLY the 3d chart, NOT the a screenshot of the whole
b) set the dimensions of the 3d chart so it COMPLETELY fills the window such
that there won't be any white space? or
c) anyway to crop pictures in R?
thanks again!! i've racked my brains trying to do this for over a week now,
and still no solution...
On Mon, Apr 26, 2010 at 10:31 PM, Duncan Murdoch
<murdoch.duncan at gmail.com>wrote:
> Mandy Xu wrote:
>> Hi R users,
>> Does anyone know how to change the size of 3d charts? I'm using surface3d
>> rgl package, opening a new window each time to display the chart. I want
>> so that the chart fills the whole window, because when I output it to png,
>> don't want all the white space around the chart (right now, i'm getting
>> white "border" around the chart because the chart is smaller than the
>> I know how to set the size of the window, but not the chart. When I make
>> window smaller, the chart automatically resizes so it gets even smaller.
>> there a way to set the chart output size so it fills all (or most) of the
> Open a window, resize it to the look you want (the right button resizes),
> then save the par3d("zoom") value into r3dDefaults$zoom. That will be the
> default zoom for new windows you open using open3d. (You may also want to
> save par3d("userMatrix") into r3dDefaults$userMatrix, if you want to change
> the orientation of the default view.)
> Duncan Murdoch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vol surface.png
Size: 19392 bytes
Desc: not available
More information about the R-help