How can I specifythe dimensions of a R chart in SPSS?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I specifythe dimensions of a R chart in SPSS?

Frans Marcelissen-3
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
Reply | Threaded
Open this post in threaded view
|

Automatic reply: How can I specifythe dimensions of a R chart in SPSS?

Marhefka, Stephanie

Hello. I will be out of the office and on leave until October 1. I may be delayed in reading and responding to email during that time. 

For matters related to the HER Study, please contact either Ms. Quiviya Eldridge ([hidden email]) or Ms. Hollie Fuhrmann ([hidden email]).

 

Thank you,

 

Stephanie L. Marhefka, Ph.D.

Assistant Professor

 

 

Reply | Threaded
Open this post in threaded view
|

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

Albert-Jan Roskam
In reply to this post by Frans Marcelissen-3
Hi,

Maybe you can check (under R):
?bmp

Not sure about the interaction between spss and R though.
 
Cheers!!
Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From: Frans Marcelissen <[hidden email]>
To: [hidden email]
Sent: Mon, May 2, 2011 5:16:47 PM
Subject: [SPSSX-L] How can I specifythe dimensions of a R chart in SPSS?

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
Reply | Threaded
Open this post in threaded view
|

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

Jon K Peck
In reply to this post by Frans Marcelissen-3
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