Default color scheme

41 views
Skip to first unread message

Agustin Lobo

unread,
Sep 24, 2012, 6:20:06 AM9/24/12
to ggp...@googlegroups.com
Hi!

I'm doing this
qplot(DN,fill=temperature,alpha=I(.2),group=temperature,data=vthcal2MIDAScal2m,geom=c("density"))+facet_grid(Image~.)+opts(title="Set
2")

on two different computers and get different colors. How can I know
which color scheme I'm using by default?

Thanks,

Agus

Kohske Takahashi

unread,
Sep 26, 2012, 6:12:52 PM9/26/12
to Agusti...@ictja.csic.es, ggp...@googlegroups.com
theme_get() will tell you the active theme that is used by default.

kohske

2012/9/24 Agustin Lobo <alobo...@gmail.com>:
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2



--
Kohske Takahashi <takahash...@gmail.com>

Assistant Professor,
Research Center for Advanced Science and Technology,
The University of Tokyo, Japan.
http://www.fennel.rcast.u-tokyo.ac.jp/profilee_ktakahashi.html

Jean-Olivier Irisson

unread,
Sep 27, 2012, 10:23:12 AM9/27/12
to Agusti...@ictja.csic.es, ggp...@googlegroups.com
On 2012-Sep-24, at 12:20 , Agustin Lobo <alobo...@gmail.com> wrote:
>
> qplot(DN,fill=temperature,alpha=I(.2),group=temperature,data=vthcal2MIDAScal2m,geom=c("density"))+facet_grid(Image~.)+opts(title="Set
> 2")
>
> on two different computers and get different colors. How can I know
> which color scheme I'm using by default?

I guess you are using a different version of ggplot on those two computers and the colour scale changed from red+blue to a range of blues.

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/
Send me large files at: http://jo.irisson.com/upload/

Reply all
Reply to author
Forward
0 new messages