Re: [R] Use of colour in plots

2008-09-19 Thread Steve Murray
p, Steve > Subject: RE: [R] Use of colour in plots > Date: Fri, 19 Sep 2008 16:15:39 +0200 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED]; r-help@r-project.org > > Steve, > > You want something like this: > > library(ggplot2) > n <- 1000 > dataset <-

Re: [R] Use of colour in plots

2008-09-19 Thread ONKELINX, Thierry
:[EMAIL PROTECTED] Verzonden: vrijdag 19 september 2008 16:01 Aan: ONKELINX, Thierry; r-help@r-project.org Onderwerp: RE: [R] Use of colour in plots Sorry - I should've maybe also pointed out that the command I've been trying to use is: alpha(col="green", 1/10) On its own this res

Re: [R] Use of colour in plots

2008-09-19 Thread Steve Murray
ve > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED]; r-help@r-project.org > Subject: RE: [R] Use of colour in plots > Date: Fri, 19 Sep 2008 13:45:43 + > > > Thierry, > > Thanks - I've had a look into using the transparency option, but can't seem > t

Re: [R] Use of colour in plots

2008-09-19 Thread Steve Murray
er can be extracted from a given body of > data. > ~ John Tukey > > -Oorspronkelijk bericht- > Van: Steve Murray [mailto:[EMAIL PROTECTED] > Verzonden: donderdag 18 september 2008 19:08 > Aan: r-help@r-project.org; ONKELINX, Thierry; [EMAIL PROTECTED]; > [EMAIL PROTEC

Re: [R] Use of colour in plots

2008-09-19 Thread Steve Murray
dataset! Thanks, Steve > Date: Fri, 19 Sep 2008 21:57:03 +1000 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Re: [R] Use of colour in plots > > Steve Murray wrote: >> Greg, >> [[elided Hotmail spam]] >&g

Re: [R] Use of colour in plots

2008-09-19 Thread ONKELINX, Thierry
John Tukey -Oorspronkelijk bericht- Van: Steve Murray [mailto:[EMAIL PROTECTED] Verzonden: donderdag 18 september 2008 19:08 Aan: r-help@r-project.org; ONKELINX, Thierry; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Onderwerp: RE: [R] Use of colour in plots Dear Thierry and all, I've t

Re: [R] Use of colour in plots

2008-09-18 Thread Yihui Xie
> > > >> From: [EMAIL PROTECTED] >> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL >> PROTECTED]; [EMAIL PROTECTED] >> CC: r-help@r-project.org >> Date: Thu, 18 Sep 2008 10:56:05 -0600 >> Subject: RE: [R] Use of colour in plots &

Re: [R] Use of colour in plots

2008-09-18 Thread Steve Murray
> Date: Thu, 18 Sep 2008 10:56:05 -0600 > Subject: RE: [R] Use of colour in plots > > Try something like: > >> x <- runif(25) >> y <- rnorm(25) >> z <- rnorm(25, 3*x) >> plot(x, y, col=ifelse( z> 1.25, 'red', 'green') ) &

Re: [R] Use of colour in plots

2008-09-18 Thread Steve Murray
ne who's able to offer any advice. Best wishes, Steve > Subject: RE: [R] Use of colour in plots > Date: Thu, 18 Sep 2008 14:52:57 +0200 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] > CC: r-help@r-project.org > > Steve, > &g

Re: [R] Use of colour in plots

2008-09-18 Thread Greg Snow
8.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Steve Murray > Sent: Thursday, September 18, 2008 8:14 AM > To: ONKELINX, Thierry; Petr PIKAL; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > Cc: r-help@r-projec

Re: [R] Use of colour in plots

2008-09-18 Thread Steve Murray
Jim and all, Maybe I've misunderstood ?color.scale (appologies if this is so), but I don't think this is what I need. I'm not looking to scale the colours of points, instead I simply want to assign each point a colour (either red or green) based on it's value in the Urban.Rural column. To cla

Re: [R] Use of colour in plots

2008-09-18 Thread ONKELINX, Thierry
org Onderwerp: Re: [R] Use of colour in plots Dear all, I've finally got round to plotting my data and trying to apply colour (had some problems with the data which I needed to rectify first!). I'm having trouble however getting the colour to work as I'd hoped, despite the help offered in

Re: [R] Use of colour in plots

2008-09-18 Thread Steve Murray
ur the point red, and if it's = To: [EMAIL PROTECTED] > CC: r-help@r-project.org; [EMAIL PROTECTED] > Subject: Re: [R] Use of colour in plots > From: [EMAIL PROTECTED] > Date: Fri, 5 Sep 2008 16:40:47 +0200 > > Hi > > [EMAIL PROTECTED] napsal dne 05.09.2008 16:24:35: &

Re: [R] Use of colour in plots

2008-09-05 Thread Petr PIKAL
> --- On Fri, 9/5/08, Steve Murray <[EMAIL PROTECTED]> wrote: > > > From: Steve Murray <[EMAIL PROTECTED]> > > Subject: [R] Use of colour in plots > > To: r-help@r-project.org > > Received: Friday, September 5, 2008, 9:10 AM > > Dear all, > > &g

Re: [R] Use of colour in plots

2008-09-05 Thread John Kane
y), max(z$y)), pch=16) points(subset(z, z$y <=.49), col="blue", pch=16) === --- On Fri, 9/5/08, Steve Murray <[EMAIL PROTECTED]> wrote: > From: Steve Murray <[EMAIL PROTECTED]> > Subject: [R] Use of colour i

[R] Use of colour in plots

2008-09-05 Thread Steve Murray
Dear all, I have 3 datasets all of which share the same longitude and latitude values, which I'm looking to plot onto a scattergraph. The third dataset has values which can only be either '1' or '2'. So to incorporate all three datasets onto two axes, I'm wondering if I can plot dataset1 and d