Re: [R] ggplot2 scatterplot matrix

From: stephen sefick <ssefick_at_gmail.com>
Date: Tue, 04 Nov 2008 09:57:17 -0500

#this worked (I changed the dataframe in this code so it is not tested...but should work)
plotmatrix(d[,3:6],
mapping=aes(shape=d$Site))+scale_shape_manual(values=c(1:12))

On Tue, Nov 4, 2008 at 9:51 AM, hadley wickham <h.wickham_at_gmail.com> wrote:
>> plotmatrix(d[,3:6])
>>
>> I would like to either have a colour or more preferably a shape to
>> correspond to Site
>> this is what I have tried (along with many other combinations)
>> plotmatrix(nmds.bug[,3:6])+scale_shape(nmds.bug, shape=Site, pch=1:12)
>
> There's not really any easy way to do this in the current
> implementation of plotmatrix. I'm aiming to rewrite it to work more
> like qplot, but that's still some ways away.
>
> Hadley
>
> --
> http://had.co.nz/
>

-- 
Stephen Sefick
Research Scientist
Southeastern Natural Sciences Academy

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 04 Nov 2008 - 15:00:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Nov 2008 - 15:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive