Re: [R] ggplot questions

2008-06-06 Thread Thompson, David (MNR)
"9", "10"), az = c(0, 360, 57, 94, 96, 152, 182, 185, 227, 264, 332, 354), dist = c(0, 16, 4.09, 2.8, 7.08, 7.09, 3.28, 7.85, 6.12, 1.97, 7.68, 7.9)), .Names = c("oplt", "rplt", "az", "dist"), row.names = c(NA, 12L), class = "dat

Re: [R] ggplot questions

2008-06-06 Thread hadley wickham
> Does the difference have something to do with ggplot() using ranges > derived from the data? > When I modify my original 'test' dataframe with two extra rows as > defined below, I get expected results in both versions. Order shouldn't matter - and if it's making a difference, that's a bug. But

Re: [R] ggplot questions

2008-06-06 Thread Thompson, David (MNR)
rg >Subject: RE: [R] ggplot questions > >David, > >1. Try scale_x_continuous(lim = c(0, 360)) + scale_y_continuous(lim = >c(0, 16)) >2. You could set the colour of the gridlines equal to the backgroup >colour with ggopt > >HTH, > >Thierry > _

Re: [R] ggplot questions

2008-06-05 Thread Thompson, David (MNR)
Thanx Hadley, More questions inline. >-Original Message- >From: hadley wickham [mailto:[EMAIL PROTECTED] >Sent: June 5, 2008 01:09 PM >To: Thompson, David (MNR) >Cc: r-help@r-project.org >Subject: Re: [R] ggplot questions > >On Wed, Jun 4, 2008 at 2:03

Re: [R] ggplot questions

2008-06-05 Thread hadley wickham
On Wed, Jun 4, 2008 at 2:03 PM, Thompson, David (MNR) <[EMAIL PROTECTED]> wrote: > Hello, > > A few questions about the following examples: > 1. Why do the two plotting versions not produce the same result? Because version one has two layers, and version two has one? > 2. Is the 'scale_x_continuo

[R] ggplot questions

2008-06-04 Thread Thompson, David (MNR)
Hello, A few questions about the following examples: 1. Why do the two plotting versions not produce the same result? 2. Is the 'scale_x_continuous' (or *_y_* or *_*_discrete) geom the best way to setup grids (as in visual guide-lines) in polar (or for that matter, any) coordinate system? 3. Why d