small point in qplot

393 views
Skip to first unread message

笙耘 彭

unread,
Feb 27, 2012, 1:55:13 PM2/27/12
to ggplot2
Is there a way to draw small point in qplot to overcome overplotting.
Like in ggplot, you can add geom_plot(shape = ".") layer to do that.
It will draw small pixel dots rather than a large black dot.

Thanks!

Jean-Olivier Irisson

unread,
Feb 27, 2012, 1:58:34 PM2/27/12
to 笙耘 彭, ggp...@googlegroups.com

qplot(…, size=I(0.2))

Does that do what you want?

Jean-Olivier Irisson
---
Observatoire Océanologique
Station Zoologique, B.P. 28, Chemin du Lazaret
06230 Villefranche-sur-Mer
Tel: +33 04 93 76 38 04
Mob: +33 06 21 05 19 90
http://jo.irisson.com/

Ben Bond-Lamberty

unread,
Feb 27, 2012, 2:01:32 PM2/27/12
to ggplot2
How about

>qplot(x,y,data=d,size=I(1))

(That's a capital "i".)

Ben

> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2

Shengyun Peng

unread,
Feb 27, 2012, 2:00:44 PM2/27/12
to Jean-Olivier Irisson, ggplot2
Yes, definitely, thank you so much.

------------------
Shengyun Peng
MS in Bioinformatics
School of Biology
Georgia Institute of Technology
Atlanta, GA, USA

Email: psy1...@163.com
 
 
 
------------------ Original ------------------
From:  "Jean-Olivier Irisson"<iri...@normalesup.org>;
Date:  Tue, Feb 28, 2012 02:58 AM
To:  "笙耘 彭"<psy1...@gmail.com>; "ggplot2"<ggp...@googlegroups.com>;
Subject:  Re: small point in qplot
 
On 2012-Feb-27, at 19:55 , 笙耘 彭 wrote:
>
> Is there a way to draw small point in qplot to overcome overplotting.
> Like in ggplot, you can add geom_plot(shape = ".") layer to do that.
> It will draw small pixel dots rather than a large black dot.

qplot(…, size=I(0.2))

Does that do what you want?

Jean-Olivier Irisson
---
Observatoire Océanologique
Station Zoologique, B.P. 28, Chemin du Lazaret
06230 Villefranche-sur-Mer
Tel: +33 04 93 76 38 04
Mob: +33 06 21 05 19 90
http://jo.irisson.com/

Reply all
Reply to author
Forward
0 new messages