Login  Register

Re: How can I specify the dimensions of a R chart in SPSS?

Posted by Jon K Peck on May 02, 2011; 6:46pm
URL: http://spssx-discussion.165.s1.nabble.com/How-can-I-specifythe-dimensions-of-a-R-chart-in-SPSS-tp4364964p4365456.html

Here is an example of setting the height and width in an R graphic within Statistics. The pin parameter is specified in inches, so this plot is 2 inches wide and 6 inches high.

begin program r.
x=rnorm(200,0,1)
y=rnorm(200,1,2)
par("pin"=c(2,6))
plot(x,y)
end program.

HTH,

Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Frans Marcelissen <[hidden email]>
To:        [hidden email]
Date:        05/02/2011 09:21 AM
Subject:        [SPSSX-L] How can I specifythe dimensions of a R chart in SPSS?
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




I try to make al long graph in R under spss(18). In the external R interface I can specify the height and width of the graphical driver.
The graphical R driver under SPSS (spssRGraphics) does not seem to have such an option. How do I specify the height and width of a graph?
Thanks
Frans