Hi Greg,
?theme
You can use the axis.text and axis.title if y and x are to be identical,
or axis.text.x, axis.text.y, axis.title.x, axis.title.y if you need
different font size.
HTH
Ulrik
On Fri, 10 Mar 2017 at 15:47 greg holly <mak.hholly at gmail.com> wrote:
Hi all;
The followings are my R codes for heat maps in ggplot2. I need to specify
the font size for the y-axis (x-axis works) as well as font size for label
y and x too. Your help highly appreciated.
Thanks,
Greg
qplot(x=Var1, y=Var2, data=melt(cor(a, use="p")), fill=value,
geom="tile") +
scale_fill_gradient2(limits=c(-1, 1))+
ylab('Super pathways') +
xlab('Significant Metabolites in Super pathways for DI') +
theme(axis.text.x = element_text(angle = 90, hjust = 1, size=6))
[[alternative HTML version deleted]]