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
On Dec 20, 2009, at 1:06 PM, Etienne Stockhausen wrote:> 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. >I think that answer about rotating what gets plotted by axis() is "no", but perhaps you are unaware of the persp() or wireframe() functions in package:lattice or the facilities offer by package:rgl?> Thanks in advance. > > Etienne StockhausenDavid Winsemius, MD Heritage Laboratories West Hartford, CT
On 20.12.2009 19:06, Etienne Stockhausen wrote:> 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?You cannot with base graphics. You could switch to the grid framework which allows such things. Best wishes, Uwe Ligges> 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.
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. >