Re: [R] a very particular plot

2010-07-16 Thread Hadley Wickham
On Wed, Jul 14, 2010 at 1:32 AM, Ian Bentley wrote: > I've got a couple of more changes that I want to make to my plot, and I > can't figure things out.  Thanks for all the help. > > I'm using this R script > > library(ggplot2) > library(lattice) > # Generate 50 data sets of size 100 and assign th

Re: [R] a very particular plot

2010-07-14 Thread Ista Zahn
Hi all, Maybe I missed some crucial context (I did not follow the example all the way through). But of course ggplot will make legends based on integers. For example: dat <- data.frame(x=sample(1:10, 100, replace=TRUE), y=sample(1:10, 100, replace=TRUE), z=sampl

Re: [R] a very particular plot

2010-07-14 Thread Jeff Newmiller
Ggplot will only produce legends based on factors. Integers are not factors. "Ian Bentley" wrote: >Hi Dennis, > >Thanks for the quick reply. >Once I removed solid = TRUE, which was giving errors, the code is accepted >fine. > >It's strange though, no legend appears. Even when I try something si

Re: [R] a very particular plot

2010-07-14 Thread Ian Bentley
Hi Dennis, Thanks for the quick reply. Once I removed solid = TRUE, which was giving errors, the code is accepted fine. It's strange though, no legend appears. Even when I try something simple like: p + scale_shape_manual(values=1:3) No legend appears. I can't find any similar problems on goog

Re: [R] a very particular plot

2010-07-13 Thread Ian Bentley
I've got a couple of more changes that I want to make to my plot, and I can't figure things out. Thanks for all the help. I'm using this R script library(ggplot2) library(lattice) # Generate 50 data sets of size 100 and assign them to a list object low <- 1 n <- 50 #Load data from file for(i in

Re: [R] a very particular plot

2010-07-11 Thread Hadley Wickham
Hi Ian, Have a look at the examples in http://had.co.nz/ggplot2/geom_tile.html for some ideas on how to do this with ggplot2. Hadley On Sat, Jul 10, 2010 at 8:10 PM, Ian Bentley wrote: > Hi all, > > Thanks for the really great help I've received on this board in the past. > > I have a very part