Re: [R] Plotting from different data sources on the same plot (with ggplot2)

2007-09-30 Thread jiho
This would probably also be interesting to some: On 2007-October-01 , at 00:48 , hadley wickham wrote: >> That's great! >> In fact I think I found exactly what I was looking for. I can just >> do: >> p = ggplot() + coord_equal() >> p$aspect.ratio = 1 >> to set up the plot, and t

Re: [R] Plotting from different data sources on the same plot (with ggplot2)

2007-09-30 Thread jiho
This was meant to be sent on the list: On 2007-September-30 , at 23:12 , jiho wrote: > On 2007-September-30 , at 21:01 , hadley wickham wrote: [...] >>> As expected there is nothing in the data part of the p object p$data >>> NULL >>> >>> But there is no data specification either in th

Re: [R] Plotting from different data sources on the same plot (with ggplot2)

2007-09-30 Thread hadley wickham
> > There are a few ways you could describe the graph you want. Here's > > the one that I'd probably choose: > > > > ggplot(mapping = aes(x = log, y = lat)) + > > geom_path(data = coast) + > > geom_point(data = coords) + > > coord_equal() > > > > We don't define a default dataset in the ggplot cal

Re: [R] Plotting from different data sources on the same plot (with ggplot2)

2007-09-30 Thread jiho
On 2007-September-30 , at 18:35 , hadley wickham wrote: >> The ggplot book specifies that "[ggplot] makes it easy to combine >> data from multiple sources". Since I use ggplot2 as much as I can >> (thanks it's really really great!) I thought I would try producing >> such a plot with ggplot2. >> >>

Re: [R] Plotting from different data sources on the same plot (with ggplot2)

2007-09-30 Thread hadley wickham
Hi JiHO, > The ggplot book specifies that "[ggplot] makes it easy to combine > data from multiple sources". Since I use ggplot2 as much as I can > (thanks it's really really great!) I thought I would try producing > such a plot with ggplot2. > > NB: If this is possible/easy with an other plotting

[R] Plotting from different data sources on the same plot (with ggplot2)

2007-09-27 Thread jiho
Hello everyone (and Hadley in particular), I often need to plot data from multiple datasets on the same graph. A common example is when mapping some values: I want to plot the underlying map and then add the points. I currently do it with base graphics, by recording the maximum region in whi