[R] Put short string labels vertically near tick marks on bottom axis

Frede Aakmann Tøgersen frtog at vestas.com
Wed May 14 10:17:56 CEST 2014


I can't find a post from you with that timestamp.

Anyway I did this in my R:

### Rcode

verData=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000)
horData=c(1,300,800,1200,1700,2100,2900,3400,3800,4300,4800,5200,5600,6100,6500,7000)
horTicLocs=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000)
horLabels=c('1Yr','1Da','10.8Hr','7Hr','5Hr','4Hr','3Hr','2.57Hr','2.25Hr','2Hr','1.82Hr',
    '1.67Hr','1.54Hr','1.43Hr','1.34Hr','1.25Hr')
plot(horData,verData,xaxt='n',xlim=horAxisLims)
axis(1,tick=TRUE,at=horTicLocs,labels=horLabels)

### Rcode end

and it worked for me (see attached png).

Nothing in your code indicates that plotrix functions should be called. The plot() and axis() functions are from the graphics packages.

No one has a clue about what happens to you because you don't share the useful information you get when you launch that code in R.

If you want some help then do the following.

1) Restart R (in case you have mucked something up in the session you have open).
2) Launch exactly the code above in the newly opened session.
3) If everything works be happy.
4) If you get some errors then copy and paste the whole output in that session and post it to the list.

Then perhaps we may be able to help you. Certainly not before that.

Have a nice day.


Yours sincerely / Med venlig hilsen


Frede Aakmann Tøgersen
Specialist, M.Sc., Ph.D.
Plant Performance & Modeling

Technology & Service Solutions
T +45 9730 5135
M +45 2547 6050
frtog at vestas.com
http://www.vestas.com

Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sender. 


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> On Behalf Of Hurr
> Sent: 14. maj 2014 09:55
> To: r-help at r-project.org
> Subject: Re: [R] Put short string labels vertically near tick marks on bottom
> axis
> 
> Full error message is there in my neat  May 13, 2014; 9:54pm post.
> For some reason your last post is a mess.
> Hurr
> 
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/Put-short-
> string-labels-vertically-near-tick-marks-on-bottom-axis-
> tp4690452p4690492.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hurr.png
Type: image/png
Size: 7178 bytes
Desc: hurr.png
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20140514/b74f59b9/attachment.png>


More information about the R-help mailing list