s-news
[Top] [All Lists]

Trellis plots

To: s-news@lists.biostat.wustl.edu
Subject: Trellis plots
From: Dave Evens <devens8765@yahoo.com>
Date: Tue, 27 Feb 2007 05:42:37 -0800 (PST)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=rkM0DkYJX+BIryoK6SCKn8aYUFinmG7pnP3btraaxbHI57lYo+ok2U/oJTzjuNJVclpuTSV1kNcIPZJDqnoLSldKIN5pSJXSanC7pNtFpGMsHXeiTM0+hPP08O9YDwjbImL/3a8gHLqv1tXAG746EgM/pJCUtYYgtKxSRVz2BOY=;

Dear members,

I would like to produce a multi-histogram plot of some
data, however I'm having difficults with the order of
the plots on the page.

For example, I have the following data

x <- matrix(c(runif(15), sample(4, 15, T)), 15)

plot the data

histogram(~x[,1]|as.factor(x[,2]), layout=c(2,2))

The final plot has factors displayed as

3 4
1 2

on the page rather than

1 2
3 4

How do I did S-Plus to produce the histogram plot in
the correct format?

Thanks in advance.

Regards
Dave




 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

<Prev in Thread] Current Thread [Next in Thread>