[R] ggplot2 Increase font size

Ista Zahn istazahn at gmail.com
Mon Feb 25 15:54:53 CET 2013


Hi Alex,

See ?theme

Best,
Ista

On Mon, Feb 25, 2013 at 9:44 AM, Alaios <alaios at yahoo.com> wrote:
>
> Dear all,
> I am using the code as below
>   tdm <- melt(matrixToPlot)
>    p<- ggplot(tdm, aes(x = Var2, y = Var1, fill = factor(value))) +
>                   labs(x = "Mz", y = "T", fill = "D") +
>                   geom_raster(alpha=1) +
>                   scale_fill_discrete(h.start=1) +
>                   scale_x_continuous(expand = c(0, 0)) +
>                   scale_y_continuous(expand = c(0, 0))
>
> to plot an two dimensional image .
>
> I would like to ask your help to replace the gray border with white color
> and increase the font size of x and y axis as wells as the legend of the
> color bar. Could you please give me the function names to use?
>
> Regards
> Alex
>         [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list