[R] Font size in geom_dl (using ggplot2)

John Kane
2012-08-28T19:25:52Z

Sample data?   Some representative sample data really is needed to see what you
are doing.  Have a look at dput() for a handy way to present data.

Also where did theme_complete_bw come from?  Is it a special formattng function?

John Kane
Kingston ON Canada


> -----Original Message-----
> From: mhabjan at gmx.at
> Sent: Tue, 28 Aug 2012 00:14:20 +0200
> To: r-help at r-project.org
> Subject: [R] Font size in geom_dl (using ggplot2)
>
> Hey everyone,
>
> I am an R-newby... so sorry for bothering you with simple-to-solve
> questions;) I have the following issue: trying to add labels to my
> scatterplots (with geom_dl in ggplot2). Everything works fine, but after
> checking every resource I do not find a way to change the font size of my
> labels. I tried size, cex, fontsize at every position... but it always
> stays
> the same.
>
> ggplot()+
> 	opts(legend.position="none")+
> 	xlab("x")+ ylab("y")+
> 	xlim(-15,15) + ylim(0,6)+
> 	theme_complete_bw()+
> 	scale_colour_manual(values=cols)+
> 	geom_point(data=m, aes(x=x, y=y, colour=s), shape=19, cex=6,
> alpha=0.3)+
> 	geom_dl(method="top.bumptwice", data=m_sig, aes(x=x, y=y,
> label=gene.name, colour=s, size=10))+
> 	geom_line(data=m_s0, aes(x= x, y=y), linetype=5,
colour="grey55",
> size=0.5)
>
> Your help is very much appreciated! Thx.
>
> ______________________________________________
> 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.

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your
desktop!