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

2014-05-14 Thread Frede Aakmann Tøgersen
Perhaps, but Arun answered you question using regular expressions. So didn't that not do the job? Br. Frede Sendt fra Samsung mobil Oprindelig meddelelse Fra: Hurr Dato:14/05/2014 22.48 (GMT+01:00) Til: r-help@r-project.org Emne: Re: [R] Put short string labels verti

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

2014-05-14 Thread Hurr
Thank you Frede Aakmann Tøgersen, but your suggestion is too difficult for me to understand. Two problems: 1)If I let the labels on the bottom horizontal scale be horizontal, then when I change the graph's size horizontally some labels disappear and reappear depending on the amount of stretch.

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

2014-05-14 Thread arun
Hi, May be this helps: num <- gsub("[[:alpha:]]+","",horLabels)##from your previous post Chr <- gsub("[0-9.]+","",horLabels)  horLabelsNew <- parse(text=paste("{}","^", num,"*",Chr,sep="")) plot(horData, verData,xaxt='n',xlim= horAxisLims) axis(1,tick=TRUE,at= horTicLocs,labels=rep("",length(hor

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

2014-05-14 Thread Frede Aakmann Tøgersen
> On Behalf Of Hurr > Sent: 14. maj 2014 16:01 > To: r-help@r-project.org > Subject: Re: [R] Put short string labels vertically near tick marks on bottom > axis > > I want to split the long label strings by > separating out the alphabetical unit part and > put the number to

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

2014-05-14 Thread Hurr
I want to split the long label strings by separating out the alphabetical unit part and put the number to the left (above) the unit. I will have the separation done by my other program if necessary. Then I would need to put some strings not at tick marks. Or is there a way to do that (semi) aut

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

2014-05-14 Thread arun
Hi, Try: install.packages("plotrix") A.K. On Wednesday, May 14, 2014 7:39 AM, Hurr wrote: Ok, I want to try to avoid the miscommunications that you all seem to think I cause. The following code works now because I use the single apostrophe-type of quote. It gives the the horLabels at the bo

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

2014-05-14 Thread Hurr
Thank you so much Frede Aakmann Tøgersen-2. Yes, the following code works with the 'plotrix' quotes and gives: 1) labels are vertical 2) the bottom of the labels line up with the ticks install.packages('plotrix') horAxisLims=c(0,7200) verData=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,525

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

2014-05-14 Thread Frede Aakmann Tøgersen
lf Of Hurr > Sent: 14. maj 2014 13:37 > To: r-help@r-project.org > Subject: Re: [R] Put short string labels vertically near tick marks on bottom > axis > > Ok, I want to try to avoid the miscommunications that > you all seem to think I cause. > The following code works now beca

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

2014-05-14 Thread Hurr
Ok, I want to try to avoid the miscommunications that you all seem to think I cause. The following code works now because I use the single apostrophe-type of quote. It gives the the horLabels at the bottom. horAxisLims=c(0,7200) verData=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,56

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

2014-05-14 Thread Frede Aakmann Tøgersen
l 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-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Hurr >

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

2014-05-14 Thread Hurr
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

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

2014-05-13 Thread David Winsemius
On May 13, 2014, at 9:19 PM, Hurr wrote: I got rid of the quotes error by using single apostrophe quotes in notepad. horAxisLims=c(0,7200) verData = c (1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000 ) #not fussy horData = c (1,300,800,1200,1700,2100,2900,3

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

2014-05-13 Thread Hurr
I got rid of the quotes error by using single apostrophe quotes in notepad. horAxisLims=c(0,7200) verData=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000) #not fussy horData=c(1,300,800,1200,1700,2100,2900,3400,3800,4300,4800,5200,5600,6100,6500,7000) #not at tics ho

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

2014-05-13 Thread Jeff Newmiller
No, he captured them in some other place, perhaps his email software. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

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

2014-05-13 Thread Jim Lemon
That's a bummer. Apparently Notepad is no longer a straight text editor. I used to rely on it when I had to use Windows. Jim On Tue, 13 May 2014 06:37:46 PM David Winsemius wrote: > On May 13, 2014, at 5:59 PM, Hurr wrote: > > David, > > The error I get is: > > Error: unexpected input in "horLab

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

2014-05-13 Thread David Winsemius
On May 13, 2014, at 5:59 PM, Hurr wrote: > David, > The error I get is: > Error: unexpected input in "horLabels=c(”" > I don't get an error: "Smart quotes" > I use Notepad for editor. Right. You got an error,... which you did not post. In my mail client the "double quotes" appeared with assymm

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

2014-05-13 Thread Jim Lemon
On Tue, 13 May 2014 06:11:58 PM Hurr wrote: > I get the error message: > "Error in library(plotrix) : there is no package called ‘plotrix’ " > Hurr > install.packages(plotrix) Jim __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

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

2014-05-13 Thread Hurr
I get the error message: "Error in library(plotrix) : there is no package called ‘plotrix’ " Hurr -- View this message in context: http://r.789695.n4.nabble.com/Put-short-string-labels-vertically-near-tick-marks-on-bottom-axis-tp4690452p4690464.html Sent from the R help mailing list archive a

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

2014-05-13 Thread Hurr
David, The error I get is: Error: unexpected input in "horLabels=c(”" I don't get an error: "Smart quotes" I use Notepad for editor. Hurr -- View this message in context: http://r.789695.n4.nabble.com/Put-short-string-labels-vertically-near-tick-marks-on-bottom-axis-tp4690452p4690463.html Sent

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

2014-05-13 Thread David Winsemius
On May 13, 2014, at 2:52 PM, Hurr wrote: > A month ago I was considering the forum topic > “Label axis tick marks with a simple function of axis value” > and haven’t had time to work much on it. > Since then I have written a little program that makes > period labels for the frequency axis, but I

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

2014-05-13 Thread Jim Lemon
On Tue, 13 May 2014 02:52:09 PM Hurr wrote: > A month ago I was considering the forum topic > “Label axis tick marks with a simple function of axis value” > and haven’t had time to work much on it. > Since then I have written a little program that makes > period labels for the frequency axis, but I

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

2014-05-13 Thread Hurr
A month ago I was considering the forum topic “Label axis tick marks with a simple function of axis value” and haven’t had time to work much on it. Since then I have written a little program that makes period labels for the frequency axis, but I don’t know how to attach them. I expected the follow