Re: [R] a very particular plot

2010-07-16 Thread Hadley Wickham
On Wed, Jul 14, 2010 at 1:32 AM, Ian Bentley ian.bent...@gmail.com 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

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

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 ian.bent...@gmail.com 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

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),

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 ian.bent...@gmail.com wrote: Hi all, Thanks for the really great help I've received on this board in the past. I

[R] a very particular plot

2010-07-10 Thread Ian Bentley
Hi all, Thanks for the really great help I've received on this board in the past. I have a very particular graph that I'm trying to plot, and I'm not really sure how to do it. I think I should be able to use ggplot for this, but I'm not really sure how. I have a data.frame which contains fifty