Skip to content

creating multiple plots using a splitting factor

1 message · Johnston, Danielle

#
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