[R] heat maps with qplot

greg holly mak.hholly at gmail.com
Fri Mar 10 16:19:29 CET 2017


Thanks Ulrik for this, This is my first experience in heat maps. Yours
advise for the theme would be appreciated.

Greg

On Fri, Mar 10, 2017 at 10:08 AM, Ulrik Stervbo <ulrik.stervbo at gmail.com>
wrote:

> 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]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>>
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list