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
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.
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
> 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
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
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
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
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
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
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
>
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
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
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
No, he captured them in some other place, perhaps his email software.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
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
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
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
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
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
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
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
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
22 matches
Mail list logo