Trellis plots

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

Trellis plots

zstatman
I found that these can be made via R but has anyone integrated these into
SPSS either via Python or R?

WMB
Statistical Services

============
mailto: [hidden email]
http:\\home.earthlink.net\~info.statman
============

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Will
Statistical Services
 
============
info.statman@earthlink.net
http://home.earthlink.net/~z_statman/
============
Reply | Threaded
Open this post in threaded view
|

Re: Trellis plots

ViAnn Beadle
Trellis plots (in the sense of small paneled charts with each panel
representing a group or different variable) can be created natively within
SPSS.

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Statmanz
Sent: Monday, November 10, 2008 6:32 AM
To: [hidden email]
Subject: Trellis plots

I found that these can be made via R but has anyone integrated these into
SPSS either via Python or R?

WMB
Statistical Services

============
mailto: [hidden email]
http:\\home.earthlink.net\~info.statman
============

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Trellis plots

Daniel Robertson
In reply to this post by zstatman
Here are some very simple, undoubtedly inelegant examples using
histogram(), densityplot(), xyplot() and bwplot() from R's "lattice"
library, using the Employee Data.sav datafile. Note that routing R's
graphical output to the viewer requires SPSS 17.

begin program r.
empData <- spssdata.GetDataFromSPSS(variables =
c('salary','jobcat','gender','salbegin'))
library('lattice')
attach(empData)
print(histogram(~ salary|factor(jobcat)))
print(densityplot(~salary|gender))
print(xyplot(salary~salbegin|gender*factor(jobcat)))
print(bwplot(salary~factor(jobcat)|gender))
end program.

Statmanz wrote:

> I found that these can be made via R but has anyone integrated these into
> SPSS either via Python or R?
>
> WMB
> Statistical Services
>
> ============
> mailto: [hidden email]
> http:\\home.earthlink.net\~info.statman
> ============
>
>
>

--
Daniel Robertson
Senior Research and Planning Associate
Institutional Research and Planning
Cornell University / irp.cornell.edu

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD