[R] How to rotate an axis?

2009-12-20 Thread Etienne Stockhausen

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@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.


Re: [R] How to rotate an axis?

2009-12-20 Thread Uwe Ligges



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@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.


__
R-help@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.


Re: [R] How to rotate an axis?

2009-12-20 Thread David Winsemius


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 Stockhausen


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
R-help@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.


Re: [R] How to rotate an axis?

2009-12-20 Thread baptiste auguie
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 einohr2...@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@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.


__
R-help@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.


[R] how to rotate y-axis tick labels

2009-02-03 Thread Hong Qin
Hello,

I need advice on how to rotate the y-axis tick labels by 90 degree
clockwise. This must be a question that has been asked frequently, but I did
not find it in the archived R-help messages.

Thanks,

Hong

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] how to rotate y-axis tick labels

2009-02-03 Thread Marc Schwartz
on 02/03/2009 11:01 AM Hong Qin wrote:
 Hello,
 
 I need advice on how to rotate the y-axis tick labels by 90 degree
 clockwise. This must be a question that has been asked frequently, but I did
 not find it in the archived R-help messages.

See ?par and take note of 'las':

  # Default 'las = 0'
  plot(1)

  plot(1, las = 1)

  plot(1, las = 2)

  plot(1, las = 3)

HTH,

Marc Schwartz

__
R-help@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.