[R] How to rotate an axis?

baptiste auguie baptiste.auguie at googlemail.com
Sun Dec 20 20:10:25 CET 2009


Hi,

Do you want a ternary plot?
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=34

It's easy to rotate an axis with Grid graphics,

library(grid)
pushViewport(viewport(0.5,0.5, width=0.5, height=unit(3, "lines")))
grid.xaxis(at=seq(-0.5,0.5,by=0.1), vp=viewport(x=1, angle=-60))

HTH,

baptiste

2009/12/20 Etienne Stockhausen <einohr2002 at web.de>:
> Hi everybody,
> I'm trying to build a trilineare coordinate system with R. For that, I need
> to rotate an axis. Does anybody know, if it is possible to rotate an axis,
> created with the command axis(), about for instance 60 degrees?
>
> I'm looking foward  to any ideas and hints and want to wish everybody a
> merry merry christmas.
>
> Thanks in advance.
>
> Etienne Stockhausen
>
> ______________________________________________
> 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