[R] scatter plot using ggplot

From: Megh Dal <megh700004_at_yahoo.com>
Date: Tue, 22 Jul 2008 01:42:44 -0700 (PDT)


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 be Blue (where it is displaying as red)
  2. There should not be any color platted
  3. Plot size must be larger than what it is displacing

Can anyone please tell me how to do that?

Regards,



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 22 Jul 2008 - 09:10:37 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 22 Jul 2008 - 17:31:56 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