hadley wickham
CC: [EMAIL PROTECTED]
Onderwerp: Re: [R] scatter plot using ggplot
Thanks for this mail. However I am getting following error on that :
Error in inherits(formula, "formula") : could not find function "aes"
And regarding my 3rd query I actually wanted to get &q
--- On Tue, 7/22/08, hadley wickham <[EMAIL PROTECTED]> wrote:
> From: hadley wickham <[EMAIL PROTECTED]>
> Subject: Re: [R] scatter plot using ggplot
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Date: Tuesday, July 22, 2008, 10:00 PM
> On Tue, Jul 22, 2008
On Tue, Jul 22, 2008 at 3:42 AM, Megh Dal <[EMAIL PROTECTED]> wrote:
> I used ggplot to create a scatter plot :
>
> library(ggplot)
> library(mnormt)
> Sigma = matrix(c(1, 0.6, 0.6, 1), 2, 2)
> x = rmnorm(20, c(0,0), Sigma)
> xx = x[order(x[,1]),]
> y = xx[,1]
> z = xx[,2]
> qplot(z, y, type="point
I used ggplot to create a scatter plot :
library(ggplot)
library(mnormt)
Sigma = matrix(c(1, 0.6, 0.6, 1), 2, 2)
x = rmnorm(20, c(0,0), Sigma)
xx = x[order(x[,1]),]
y = xx[,1]
z = xx[,2]
qplot(z, y, type="point", main="x-y plot", xlab="x", col="blue")
However I want following:
1. Plot color must
4 matches
Mail list logo