[R] axis name editing

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Jan 28 15:12:56 CET 2011


Use the argument "las" as explained in ?par.

Uwe Ligges



On 28.01.2011 11:56, Yan Jiao wrote:
> Dear All,
>
> I'm generating a heatmap, is there a way to make Y axis name display
> horizontally, X axis name display vertically?
>
> I tried using "horiz=TRUE":
>
> axis(1,at=1:dim(cor.meta.m)[1],labels=gsub("module","",pw.names),horiz=T
> RUE)
>
>
>
> but got warning message and the name is not displayed as I wish:
>
>
>
> Warning message:
>
> In axis(1, at = 1:dim(cor.meta.m)[1], labels = gsub("module", "",  :
>
>    "horiz" is not a graphical parameter
>
>
>
> Please help, my R version is 2.12.0
>
>
>
> Many thanks
>
>
>
> Yan
>
>
> **********************************************************************
> This email and any files transmitted with it are confide...{{dropped:10}}
>
> ______________________________________________
> 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