[R] Font size in geom_dl (using ggplot2)

Matthias Habjan mhabjan at gmx.at
Tue Aug 28 00:14:20 CEST 2012


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.



More information about the R-help mailing list