Skip to content
Prev 199808 / 398502 Next

creating multiple plots using a splitting factor

Thank you for the responses.  The Lattice library is indeed useful for
producing the graphs in which I am interested, and I appreciate the
clarification between a function and the result of a function.  

Ideally, I would like to be able to page through the graphs rather than
(or in addition to) having them displayed on the same page.  Is there a
way to do this?

Danielle B. Johnston, Habitat Researcher
Colorado Division of Wildlife

-----Original Message-----
From: Phil Spector [mailto:spector at stat.berkeley.edu] 
Sent: Tuesday, November 10, 2009 12:46 AM
To: Johnston, Danielle
Subject: Re: [R] creating multiple plots using a splitting factor

Danielle -
    What you meant to say was

lapply(splitlist, function(x)hist(x$distance_cm, breaks=10))

but you might also be interested in trying

library(lattice)
histogram(~distance_cm|site,data=seeddist2)


 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Mon, 9 Nov 2009, Johnston, Danielle wrote:

            
specific
data
site:
http://www.R-project.org/posting-guide.html
Message-ID: <C9B514003D571F41BD5D246BA9E1880501942D0B@DNRDENEXCL01.naturenet.state.co.us>
In-Reply-To: <alpine.DEB.1.00.0911092343410.6687@springer.Berkeley.EDU>