Re: [R] ggplot2 - extracting values of smooth

2011-10-03 Thread Paul Hiemstra
On 09/30/2011 04:39 PM, dM/ wrote: > Suppose that I'm working on Hadley's diamond dataset and I want to > review the relationship between price, colour and carat. > > I might run the following: > > library(ggplot2) > > #plot scatter and add some hex binning > q<-qplot(carat,price,data=diamonds

Re: [R] ggplot2 - extracting values of smooth

2011-10-03 Thread Paul Hiemstra
On 09/30/2011 04:39 PM, dM/ wrote: > Suppose that I'm working on Hadley's diamond dataset and I want to > review the relationship between price, colour and carat. > > I might run the following: > > library(ggplot2) > > #plot scatter and add some hex binning > q<-qplot(carat,price,data=diamonds

[R] ggplot2 - extracting values of smooth

2011-09-30 Thread dM/
Suppose that I'm working on Hadley's diamond dataset and I want to review the relationship between price, colour and carat. I might run the following: library(ggplot2) #plot scatter and add some hex binning q<-qplot(carat,price,data=diamonds, geom=c("hex"), main="Variability of