Re: [R] Lattice and Quartz

2010-11-23 Thread David Winsemius
On Nov 23, 2010, at 1:11 AM, Sarah Berry wrote: I ran this script in a source file on my Mac: library(lattice) year <- 1900:2000 dollars <- (year-1899)^2 plot(year,dollars) quartz("year") histogram(~dollars) The first plot appears in Quartz 2. The second quartz window, named year, opens but

Re: [R] Lattice and Quartz

2010-11-23 Thread Dennis Murphy
Perhaps you're a victim of FAQ 7.22. Try putting a print () around your plot call - e.g., print(histogram(~ dollars)). And please read said FAQ to understand why... HTH, Dennis On Mon, Nov 22, 2010 at 10:11 PM, Sarah Berry wrote: > I ran this script in a source file on my Mac: > > library(latti

[R] Lattice and Quartz

2010-11-22 Thread Sarah Berry
I ran this script in a source file on my Mac: library(lattice) year <- 1900:2000 dollars <- (year-1899)^2 plot(year,dollars) quartz("year") histogram(~dollars) The first plot appears in Quartz 2. The second quartz window, named year, opens but the histogram doesn't appear. However, when I copy