Re: [R] Text showing when R is launched

2023-10-12 Thread George Loftus
there which I have since deleted but I am still getting the same issue Thankyou, George From: Rui Barradas Sent: 10 October 2023 12:06 To: George Loftus ; r-help@r-project.org Subject: Re: [R] Text showing when R is launched �s 23:56 de 09/10/2023, George L

Re: [R] Text showing when R is launched

2023-10-11 Thread Rui Barradas
in Users/Admin There were a couple of R files in there which I have since deleted but I am still getting the same issue Thankyou, George From: Rui Barradas Sent: 10 October 2023 12:06 To: George Loftus ; r-help@r-project.org Subject: Re: [R] Text showing when

Re: [R] Text showing when R is launched

2023-10-10 Thread Rui Barradas
Às 23:56 de 09/10/2023, George Loftus escreveu: Good Evening, I was wondering if you were able to help, I am running R on MacOS, it is the 2020 model mac so have install the Intel arm of R which I believe is correct However when I launch R or resume the R window after going on a different pro

Re: [R] Text showing when R is launched

2023-10-10 Thread Ivan Krylov
On Mon, 9 Oct 2023 22:56:50 + George Loftus wrote: > However when I launch R or resume the R window after going on a > different programme the following text is running Do you have anything valuable stored in /Users/admin/.RData? Does the message disappear if you move the file away? If you

Re: [R] text analysis errors

2021-01-07 Thread Rasmus Liland
On 2021-01-07 11:34 +1100, Jim Lemon wrote: > On Thu, Jan 7, 2021 at 10:40 AM Gordon Ballingrud > wrote: > > > > Hello all, > > > > I have asked this question on many forums without response. And although > > I've made progress myself, I am stuck as to how to respond to a particular > > error mess

Re: [R] text analysis errors

2021-01-06 Thread Jim Lemon
Hi Gordon, Looks to me as though you may have to extract the text from the Word files. Export As Text. Jim On Thu, Jan 7, 2021 at 10:40 AM Gordon Ballingrud wrote: > > Hello all, > > I have asked this question on many forums without response. And although > I've made progress myself, I am stuck

[R] text analysis errors

2021-01-06 Thread Gordon Ballingrud
Hello all, I have asked this question on many forums without response. And although I've made progress myself, I am stuck as to how to respond to a particular error message. I have a question about text-analysis packages and code. The general idea is that I am trying to perform readability analys

Re: [R] text on curve

2020-09-22 Thread Berry, Charles
> On Sep 22, 2020, at 1:10 AM, Jinsong Zhao wrote: > > Hi there, > > I write a simple function that could place text along a curve. Since I am not > familiar with the operation of rotating graphical elements, e.g., text, > rectangle, etc., I hope you could give suggestions or hints on how t

Re: [R] text on curve

2020-09-22 Thread Jim Lemon
Hi Jinsong, This is similar to the "arctext" function in plotrix. I don't want to do all the trig right now, but I would suggest placing the characters on the curve and then offsetting them a constant amount at right angles to the slope of the curve at each letter. I would first try having a "minsp

[R] text on curve

2020-09-22 Thread Jinsong Zhao
Hi there, I write a simple function that could place text along a curve. Since I am not familiar with the operation of rotating graphical elements, e.g., text, rectangle, etc., I hope you could give suggestions or hints on how to improve it. Thanks in advance. # Here is the code: getCurrentAs

Re: [R] text annotation on Manhattn plot in qqman

2020-05-20 Thread Michael Dewey
Dear Ana That looks like something is hard coded in manhattan(). The simplest thing might be to contact the maintainer of the package and ask. You can make a copy of manhattan or textxy and modify them but I think the maintainer is the simplest course of action. Michael On 20/05/2020 16:10,

Re: [R] text annotation on Manhattn plot in qqman

2020-05-20 Thread Ana Marija
HI Michael, Thank you so much! That worked!!! Now I am just trying to increase the size of text of SNP and GENE on plot I tried this: a$newname <- paste(a$SNP,"\n", a$GENE) manhattan(a, chr="CHR", bp="BP", snp="newname", p="P",cex = 0.5,annotatePval = 0.0001) but I am getting this error: Error

Re: [R] text annotation on Manhattn plot in qqman

2020-05-20 Thread Michael Dewey
a$newname <- paste(a$SNP, a$GENE) manhattan(a, chr="CHR", bp="BP", snp="newname", p="P",annotatePval = 0.0001) However note that I do not use manhattan() so you may need to alter the parameters as I am assuming a is where it finds the remaining parameters. You may also need to play with the se

Re: [R] text annotation on Manhattn plot in qqman

2020-05-19 Thread Michael Dewey
Dear Ana Perhaps paste together SNP and GENE using paste() and then supply that as the snp parameter. Michael On 19/05/2020 17:12, Ana Marija wrote: Hello, I am making manhattan plot with: library(qqman) manhattan(a, chr="CHR", bp="BP", snp="SNP", p="P",annotatePval = 0.0001) and I would l

Re: [R] text annotation on Manhattn plot in qqman

2020-05-19 Thread Ana Marija
Hi Michael, can you please send me code how that would be done? Thanks Ana On Tue, May 19, 2020 at 11:18 AM Michael Dewey wrote: > > Dear Ana > > Perhaps paste together SNP and GENE using paste() and then supply that > as the snp parameter. > > Michael > > On 19/05/2020 17:12, Ana Marija wrote:

[R] text annotation on Manhattn plot in qqman

2020-05-19 Thread Ana Marija
Hello, I am making manhattan plot with: library(qqman) manhattan(a, chr="CHR", bp="BP", snp="SNP", p="P",annotatePval = 0.0001) and I would like to annotate these two SNPs which are above the threshold so that they have GENE name beside them: > a[a$SNP=="rs4081570",] SNPP CHR

Re: [R] Text search

2020-01-25 Thread Sarah Goslee
Hi, > dat$new[grep("Tall", dat$char)] <- "Tall" > dat$new[grep("Short", dat$char)] <- "Short" > dat obs Year charnew 1 1 2001 Tall156 Tall 2 2 2002 12565Tall Tall 3 3 2003 all54 4 4 2004 Short Short 5 5 2005 54all 6 6 2006 7Short12 Short Assuming that n

[R] Text search

2020-01-25 Thread Ashta
Hi all, >From one of the columns of the data frame I want to search and extract a text that contains Tall or Short and create new column that should contain these texts in a corresponding row. My example data and the desired output are shown below dat<-read.table(text="obs Year char 1 2001 T

Re: [R] Text cutoff in legends

2017-03-05 Thread Jim Lemon
Hi Burhan, I think you may have set records in both obscurity and brevity (watch out, Jeff). Undeterred, I will guess that you have positioned the legend so that it runs off the plot. Try adding the "xpd=TRUE" argument to the call to legend. Jim On Sun, Mar 5, 2017 at 10:56 AM, Burhan Mohamedali

[R] Text cutoff in legends

2017-03-05 Thread Burhan Mohamedali
R adds cut tea e Excuse my brevity;to this message is sent from my iPhonequ __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] Text categories based on the sentences

2016-11-16 Thread S Ellison
> I have data set contains one variable "*Description*" > > *Description** Category* > > 1. i want ice cream food > 2. i like banana very much fruit > 3. tomorrow i will eat chick

Re: [R] Text categories based on the sentences

2016-11-14 Thread Jim Lemon
Hi Venky, Unfortunately the MindReader package produces the following: 1. I want ice cream Desire 2. I like banana very much Pleasure 3. Tomorrow i will eat chicken Expectation 4. Yesterday i went to bi

[R] Text categories based on the sentences

2016-11-14 Thread Venky
Hi team, I have data set contains one variable "*Description*" *Description** Category* 1. i want ice cream food 2. i like banana very much fruit 3. tomorrow i will eat chicken

[R] Text Mining in R

2016-05-17 Thread Burhan ul haq
Hi, Wishing you all well. I am exploring text mining with R. Here is where I need help: 1. The starting point is a data frame worder1<- c("I am, taking 2","are these the three samples?", "He speaks differently to you, aint it !","This is distilled - my dear, now give me $3","I saved

Re: [R] text duplication bug in mtext?

2016-01-01 Thread Duncan Murdoch
On 01/01/2016 1:36 PM, Arkay wrote: Not sure if this has already been reported but I think that there might be a bug in mtext that causes the text in a plot to be duplicated under a narrow set of circumstances. As David said, this is a feature, not a bug. You were probably confused by the diff

Re: [R] text duplication bug in mtext?

2016-01-01 Thread David Winsemius
> On Jan 1, 2016, at 10:36 AM, Arkay wrote: > > Not sure if this has already been reported but I think that there might > be a bug in mtext that causes the text in a plot to be duplicated under > a narrow set of circumstances. > > Here is a reproducible example. > > df1 <- data.frame(V1=rnor

[R] text duplication bug in mtext?

2016-01-01 Thread Arkay
Not sure if this has already been reported but I think that there might be a bug in mtext that causes the text in a plot to be duplicated under a narrow set of circumstances. Here is a reproducible example. df1 <- data.frame(V1=rnorm(100)) hist(df1$V1) mtext("Test", side=1, line=4, adj=c(1,0))

[R] Text in Spatial Polygrams

2015-08-25 Thread Jim Burke
I can do this fine for one polygram BUT a for-loop fails.The concept is multiple lines within each polygon. I am doing something sub-genius. ONE POLYGON plot(all_pcts_osm_sp[i,], add = FALSE, lwd=.5, border='blue') hght <- strheight("Here") MyLines <- list( bquote( .(all_pcts_osm_s

Re: [R] Text Pattern Recognition - Model

2015-08-17 Thread Bert Gunter
Wrong list. This list is about R, not about statistics/statistical learning. Post to a stats list like stats.stackexchange.com for methods issues. Once you figure out what you want to do, R almost certainly can do it -- search to find out what fuctions/packages to use. Cheers, Bert Bert Gunter "D

[R] Text Pattern Recognition - Model

2015-08-17 Thread Anshuk Pal Chaudhuri
Hi, I have a training dataset which has two columns which has around 70 values. 1. "PNRNo" whose values like UT768G, CXKA, 4IOI59, 4BV7TW...(typical PNR number patterns) 2. I have created one more factor variable mentioning (IsPNR) - so all the values are 1 (true) My first objecti

[R] Text Mining - Remove punctuation not removing quotes and dashes

2015-06-07 Thread Anindya Sankar Dey
Hi, I have been doing some text mining. I created the DTM matrix using the following steps. corpus1<-VCorpus(VectorSource(resume1$Dat1)) corpus1<-tm_map(corpus1,content_transformer(tolower)) dtm<-DocumentTermMatrix(corpus1, control = list(removePunctuation = TRUE,

[R] text miner error: Error in UseMethod("meta", x)

2015-02-25 Thread Sun Shine
Hi list I've been working my way through a tutorial on text mining ( http://onepager.togaware.com/TextMiningO.pdf ) and all was well until I came across this problem using tm (text miner): ++code+++ > docs <- tm_map(docs, content_transformer(tolower)) Warning messages:

Re: [R] Text Mining in Non English Speaking Countries

2014-09-24 Thread Flavio Barros
I used already with portuguese. No problems. Flavio Barros www.flaviobarros.net [image: Facebook] [image: LinkedIn] <

[R] Text Mining in Non English Speaking Countries

2014-09-24 Thread ziad.elmously
Hello All, I am interested in conducting text mining in languages other English. My understanding is the following R packages can analyze alternative (to English) languages: 1. "topicmodels" 2. "snowball" 3. "tm" Can anyone confirm? Specifically, I am interested in Hindi

Re: [R] text minning script

2014-04-03 Thread Frede Aakmann Tøgersen
april 2014 18:44 To: Frede Aakmann Tøgersen Subject: Re: [R] text minning script sorry,you are right thanks 2014-04-03 19:26 GMT+03:00 Frede Aakmann Tøgersen mailto:fr...@vestas.com>>: Hi Anan Don't expect people on this list to do YOUR work. If you have some specific problems with R

Re: [R] text minning script

2014-04-03 Thread Frede Aakmann Tøgersen
Hi Anan Don't expect people on this list to do YOUR work. If you have some specific problems with R then perhaps some people are devoted to help you. Now is the time when you help yourself. Google for "r text mining" or "r text mining example" and you will get some hel

[R] text minning script

2014-04-03 Thread Anan Halabi
I need simple script to work with text minning [[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 a

Re: [R] Text Input from a Non Delimited File

2014-02-09 Thread David Winsemius
On Feb 9, 2014, at 2:48 PM, Burhan ul haq wrote: > Hi, > > I am trying to read in a file, which is not delimited by any specific > characters. > > Something as follows: > ## --- Lines <- readLines(textConnection("GunPos RaceNo Nam

Re: [R] Text Input from a Non Delimited File

2014-02-09 Thread Duncan Murdoch
On 14-02-09 5:56 PM, Burhan ul haq wrote: Hi, Minor Additions: The original file was as follows: ## --- GunPos RaceNo Name Gender Cat Club GunTime ChipPos ChipTime 1 10038 Carl Allwood M Sutton & Ashfield Harriers 02:38:40 1 02:38

Re: [R] Text Input from a Non Delimited File

2014-02-09 Thread Burhan ul haq
Hi, Minor Additions: The original file was as follows: ## --- GunPos RaceNo Name Gender Cat Club GunTime ChipPos ChipTime 1 10038 Carl Allwood M Sutton & Ashfield Harriers 02:38:40 1 02:38:40 2 10098 Adam Holland M Votwo/USN 02:41:2

Re: [R] Text in a plot without x axis

2013-10-24 Thread David Carlson
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ahmed Attia Sent: Thursday, October 24, 2013 2:10 PM To: r-help@r-project.org Subject: [R] Text in a plot without x axis Dear R users, Can I add a text to a plot without x axis? I saw a fun

[R] Text in a plot without x axis

2013-10-24 Thread Ahmed Attia
Dear R users, Can I add a text to a plot without x axis? I saw a function that enables placing the text with mouse text(location, "text to place", pos, ...) locator(1) but it did not work out. -- Ahmed M. Attia Research Assistant Dept. Of Soil&Crop Sciences Texas A&M University ahmed.at...

Re: [R] text position with offset

2013-10-03 Thread Duncan Murdoch
On 03/10/2013 12:48 PM, Jinsong Zhao wrote: Hi there, I have draw a scatter plot. Now, I hope to label the points in the plot. For example: plot(1:10) text(1:10, 1:10, LETTERS[1:10]) In the above line, I can set position for each labels with pos, e.g.: text(1:10, 1:10, LETTERS[1:10], pos = sa

Re: [R] text position with offset

2013-10-03 Thread Greg Snow
You can use the mapply function (or Vectorize) to call text with multiple values for arguments that only take a single value, like adj and offset. On Thu, Oct 3, 2013 at 10:48 AM, Jinsong Zhao wrote: > Hi there, > > I have draw a scatter plot. Now, I hope to label the points in the plot. > For

[R] text position with offset

2013-10-03 Thread Jinsong Zhao
Hi there, I have draw a scatter plot. Now, I hope to label the points in the plot. For example: plot(1:10) text(1:10, 1:10, LETTERS[1:10]) In the above line, I can set position for each labels with pos, e.g.: text(1:10, 1:10, LETTERS[1:10], pos = sample(1:4, 10, replace = TRUE)) as what you

Re: [R] Text Encoding

2013-04-09 Thread Emily Ottensmeyer
Dear Milan and David, Thank you both very much for your help! I finally figured it out. Text on the website was UTF-8, but in the process of downloading it using RDF, it got converted to the java/javascript encoding. To convert it back to UTF-8: > test <- "4.5\\u00B5g of cDNA was used" > iconv

Re: [R] Text Encoding

2013-04-06 Thread David Winsemius
On Apr 5, 2013, at 11:30 AM, Emily Ottensmeyer wrote: > Dear R-Help, > > I am using the RDF package/ R 2.14 with the RDF package to download data > from a website, and then use R to manipulate it. > > Text on the website is UTF-8. The RDF package's rdf_load command is > converting it into a di

Re: [R] Text Encoding

2013-04-06 Thread Milan Bouchet-Valat
Le vendredi 05 avril 2013 à 14:30 -0400, Emily Ottensmeyer a écrit : > Dear R-Help, > > I am using the RDF package/ R 2.14 with the RDF package to download data > from a website, and then use R to manipulate it. > > Text on the website is UTF-8. The RDF package's rdf_load command is > converting

[R] Text Encoding

2013-04-05 Thread Emily Ottensmeyer
Dear R-Help, I am using the RDF package/ R 2.14 with the RDF package to download data from a website, and then use R to manipulate it. Text on the website is UTF-8. The RDF package's rdf_load command is converting it into a different encoding, which converts non-ASCII characters to unicode codes

Re: [R] Text mining

2013-01-26 Thread Steve Stephenson
Hi Giovanni, thanks a lot for your quick reply!!! I try to answer you in a few points: 1 - A Data Base containing all the towns and the Region they belong to (North, Sud...) is already available on the ISTAT site (www.ISTAT.it); 2- My goal was just to find a "method" supporting my idea, that is to

Re: [R] Text mining

2013-01-26 Thread Giovanni Azua
6, 2013 10:08 PM To: r-help@r-project.org Subject: [R] Text mining Hallo to everybody, I would like to perform an analysis but I don't know how to proceed and whether R packages are available for my purpose or not. Therefore I'm here to request your support. *The idea is the following:

[R] Text mining

2013-01-26 Thread Steve Stephenson
Hallo to everybody, I would like to perform an analysis but I don't know how to proceed and whether R packages are available for my purpose or not. Therefore I'm here to request your support. *The idea is the following:* I noticed that the names of the towns and villages in northern Italy most of t

Re: [R] Text file: multiple matrix

2012-10-10 Thread Purna chander
Hi, You can try this and see. I'm assuming that the initial text file named "test.txt". x<-read.table("test.txt",header=T) # if headers are present in "test.txt" or x<-read.table("test.txt") # Actually, read.table() command skips the blank lines. n<-256 for (i in 1:100){ filename=past

Re: [R] Text file: multiple matrix

2012-10-09 Thread Rui Barradas
Hello, Try the following, substituting your filename for "test.txt". fun <- function(filenumber, con, n, sep = " ", prefix = "RTest"){ txt <- readLines(con, n = n) tc <- textConnection(txt) on.exit(close(tc)) tbl <- read.table(tc, sep = sep)[-n, ] filename <- sprintf("%s_%03

[R] Text file: multiple matrix

2012-10-09 Thread ludovico
Hi there! I'm a newbie in R This is my problem: I have a txt file composed by 100 matrix (256x256) separated by a blank line! How can I save automatically the matrix in separated txt file (100)? e.g. 1° matrix from line 1 to line 256 257 blank line 2°matrix from line 258 to line 513 514 blank line

Re: [R] Text to Speech In R

2012-10-04 Thread C.H.
Pizza can be ordered from R (fortune 66), why not tts? Under Debian, I can tts by apt-get install the tts engine espeak and then use the simple system call under R > system("espeak", input="hello world, howdy") On Thu, Oct 4, 2012 at 8:31 PM, Alex Zhang wrote: > Dear all, > > Excuse me for my

Re: [R] Text to Speech In R

2012-10-04 Thread Bhupendrasinh Thakre
on Windows for this project tho... > > - Alex > > > > From: R. Michael Weylandt > To: Alex Zhang > Cc: "r-help@r-project.org" > Sent: Thursday, October 4, 2012 8:50 AM > Subject: Re: [R] Text to Speech In R > >

Re: [R] Text to Speech In R

2012-10-04 Thread Jeff Newmiller
r >To: Alex Zhang ; Alex Zhang >; "r-help@r-project.org" >Sent: Thursday, October 4, 2012 8:46 AM >Subject: Re: [R] Text to Speech In R > >Why do you think this is something R should be able to do? >---

Re: [R] Text to Speech In R

2012-10-04 Thread Alex Zhang
Thanks, Mike! I am on Windows for this project tho... - Alex From: R. Michael Weylandt To: Alex Zhang Cc: "r-help@r-project.org" Sent: Thursday, October 4, 2012 8:50 AM Subject: Re: [R] Text to Speech In R On Thu, Oct 4, 2012 at 1:31 PM, Alex Zh

Re: [R] Text to Speech In R

2012-10-04 Thread Alex Zhang
Jeff - so, do you mean that you are sure it can NOT AND SHOULD NOT? Thanks, - Alex From: Jeff Newmiller To: Alex Zhang ; Alex Zhang ; "r-help@r-project.org" Sent: Thursday, October 4, 2012 8:46 AM Subject: Re: [R] Text to Speech In R Why do you

Re: [R] Text to Speech In R

2012-10-04 Thread R. Michael Weylandt
On Thu, Oct 4, 2012 at 1:31 PM, Alex Zhang wrote: > Dear all, > > Excuse me for my searching skills: I just couldn't figure out how to do any > simple text to speech in R console. > > What I want to do is, out put simple English words or sentences to speaker as > voice. No fanciness. For example

Re: [R] Text to Speech In R

2012-10-04 Thread Jeff Newmiller
Why do you think this is something R should be able to do? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] Text to Speech In R

2012-10-04 Thread Alex Zhang
Dear all, Excuse me for my searching skills: I just couldn't figure out how to do any simple text to speech in R console. What I want to do is, out put simple English words or sentences to speaker as voice. No fanciness. For example, I want the R console to speak "Hello world" or "Howdy". Do

[R] Text mining? Text manipulation? Both? Predicting KRAS test results in cancer patients

2012-09-28 Thread Paul Miller
you can see how it might be difficult to accurately predict the results of testing based on counts alone.   My question is how best to deal with this. Are there any R text mining packages or related software that would be particularly suited to my problem? I took a look at the CRAN Task View:

Re: [R] text command - how to get a white background to cover grid lines

2012-09-07 Thread Jim Lemon
On 09/07/2012 07:30 AM, Levi Waldron wrote: For posterity, I found the TeachingDemos::shadowtext option most agreeable for this problem: * legend puts a large box around the text which did not seem possible to shrink, and does not accept vector x, y arguments * plotrix::boxed.labels di

Re: [R] text command - how to get a white background to cover grid lines

2012-09-06 Thread Levi Waldron
For posterity, I found the TeachingDemos::shadowtext option most agreeable for this problem: * legend puts a large box around the text which did not seem possible to shrink, and does not accept vector x, y arguments * plotrix::boxed.labels did not work with pos=4 (this moved the text, but

Re: [R] text search in r

2012-08-02 Thread arun
w1<-c("ABABAAABABBABABBA") resAB<-count(unlist(strsplit(gsub("AB",1,new1),""))==1)[2,]  resAB  #    x freq #2 TRUE    7 resBA<-count(unlist(strsplit(gsub("BA",2,new1),""))==2)[2,]  resBA # x freq #2 TRUE    7 A.K. - Original

Re: [R] text search in r

2012-08-02 Thread arun
ABABBA")  res2<-matchPattern("BA",new1) length(res2) #[1] 7  length(unlist(gregexpr2("BA",new1))) #[1] 7 A.K. - Original Message ----- From: rnewbie565 To: r-help@r-project.org Cc: Sent: Thursday, August 2, 2012 5:27 PM Subject: [R] text search in r I am trying t

Re: [R] text search in r

2012-08-02 Thread Eloi Mercier
There's no need for 'strsplit' here. new=c("BABBBABB") A2B <- gregexpr("AB", new) B2A <- gregexpr("BA", new) length(A2B[[1]]) #3 length(B2A[[1]]) #2 Cheers, Eloi On 12-08-02 03:44 PM, David Winsemius wrote: On Aug 2, 2012, at 2:27 PM, rnewbie565 wrote: I am trying to count the numb

Re: [R] text search in r

2012-08-02 Thread David Winsemius
On Aug 2, 2012, at 2:27 PM, rnewbie565 wrote: I am trying to count the number of times that the characters in a string change For example- new=c(BABBBABB) Presumably you meant to quote that string. I want to find the number of times that B changes to A and the number of times tha

[R] text search in r

2012-08-02 Thread rnewbie565
I am trying to count the number of times that the characters in a string change For example- new=c(BABBBABB) I want to find the number of times that B changes to A and the number of times that A changes to B. I tried the grep command but I only figured out the positions of when B changes to

Re: [R] text(): combine expression and line break

2012-05-11 Thread Bert Gunter
Try this: plot(1,type="n", xaxt='n', yaxt='n', ann=FALSE) text(1,1,labels=expression(atop(sigma,"(log scale, m)")),cex = 2) You can add extra blank characters to align the text like this: plot(1,type="n", xaxt='n', yaxt='n', ann=FALSE) text(1,1,labels=expression(atop(sigma,phantom("W")~"(l

Re: [R] text(): combine expression and line break

2012-05-11 Thread jim holtman
try this: plot(1,type="n", xaxt='n', yaxt='n', ann=FALSE) text(1,1,labels=expression(atop(sigma, "log scale,m")),cex = 2) On Fri, May 11, 2012 at 1:40 PM, Johannes Radinger wrote: > Hi, > > I would like to plot some extra text in my plot. > This should be a two line text including a special c

[R] text(): combine expression and line break

2012-05-11 Thread Johannes Radinger
Hi, I would like to plot some extra text in my plot. This should be a two line text including a special character (sigma). I tried so far a to use expression in combination with paste and "\n"... but I can't get the line break... Here what I've done so far: plot(1,type="n", xaxt='n', yaxt='n', a

Re: [R] text replacement with a loop in a script file

2012-05-04 Thread Rui Barradas
Hello, diegogiri wrote > > Hi, i'm a new r user and I will take you a simple (not for me)question. > I have a r script file like this: > > text <- c(" ") > > I have a csv file like: > NAME > alfa > beta > gamma > > how can I replace with a loop statment metadata "" o

[R] text replacement with a loop in a script file

2012-05-04 Thread diegogiri
Hi, i'm a new r user and I will take you a simple (not for me)question. I have a r script file like this: text <- c(" ") I have a csv file like: NAME alfa beta gamma how can I replace with a loop statment metadata "" of script file with the values names in the csv file?

[R] Text mining: Narrowing a field of 27, 855 predictors using semi-partial correlations or some other means

2012-04-18 Thread Paul Miller
Hello Everyone, Trying to learn a little bit about data mining. I'm working on a text mining project that will attempt to predict whether cancer patients got a particular type of genetic testing. A subsequent stage then will be aimed at predicting what the results of that testing were.   I've

Re: [R] text command - how to get a white background to cover grid lines

2012-02-06 Thread 538280
An alternative is the shadowtext function in the TeachingDemos package. On Mon, Feb 6, 2012 at 1:19 AM, Jim Lemon wrote: > On 02/06/2012 08:23 AM, Henry wrote: >> >> New to R - rookie question. >> I'm a mechanical engineer and enjoying using R to make high quality >> graphs. >> >> I've searched.

Re: [R] new to R - text command - background color

2012-02-06 Thread Henry
: http://r.789695.n4.nabble.com/new-to-R-text-command-background-color-tp4359778p4363401.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] text command - how to get a white background to cover grid lines

2012-02-06 Thread Jim Lemon
On 02/06/2012 08:23 AM, Henry wrote: New to R - rookie question. I'm a mechanical engineer and enjoying using R to make high quality graphs. I've searched. I want to put text notation on graph plot areas and have the text background "box" white to cover over the grid lines. my command so far..

[R] text command - how to get a white background to cover grid lines

2012-02-05 Thread Henry
New to R - rookie question. I'm a mechanical engineer and enjoying using R to make high quality graphs. I've searched. I want to put text notation on graph plot areas and have the text background "box" white to cover over the grid lines. my command so far text(15,5200,"Air Flow",cex=.8,

Re: [R] text command - how to get a white background to cover grid lines

2012-02-05 Thread Pete Brecknock
How about using the legend function ... plot(rnorm(100)) legend(60,2,"100 Random Normal Draws",cex=.8,text.col="blue", box.col="red",bg="yellow") You can customize my effort to fit your specific needs HTH Pete Henry wrote > > New to R - rookie question. > I'm a mechanical engineer and enjoy

[R] text orientation in persp

2011-11-03 Thread Andrew Gormley
I am doing a 3D plot using persp {graphics} but cannot figure out how to change the text direction on the z-axis. The default is for it to read down. Also, I cannot figure out how to change the position of the text itself. Many thanks Andrew Please consider the e

Re: [R] Text Mining with Facebook Reviews (XML and FQL)

2011-10-11 Thread Duncan Temple Lang
Hi Kenneth First off, you probably don't need to use xmlParseDoc(), but rather xmlParse(). (Both are fine, but xmlParseDoc() allows you to control many of the options in the libxml2 parser, which you don't need here.) xmlParse() has some capabilities to fetch the content of URLs. Howeve

[R] Text Mining with Facebook Reviews (XML and FQL)

2011-10-10 Thread Kenneth Zhang
Hello, I am trying to use XML package to download Facebook reviews in the following way: require(XML) mydata.vectors <- character(0) Qword <- URLencode('#IBM') QUERY <- paste('SELECT review_id, message, rating from review where message LIKE %',Qword,'%',sep='') Facebook_url = paste('https://api.

Re: [R] text matching

2011-09-20 Thread Takatsugu Kobayashi
Hi, The "str_locate" function instringr package may do what you are looking for. Hope this link will help... http://en.wikibooks.org/wiki/R_Programming/Text_Processing Taka On Mon, Sep 19, 2011 at 7:15 PM, SNV Krishna wrote: > Hi All, > > I have a character vector by name tickers > >> head(ti

Re: [R] text matching

2011-09-19 Thread SNV Krishna
rom: David Winsemius [mailto:dwinsem...@comcast.net] Sent: Monday, September 19, 2011 10:10 PM To: Sarah Goslee Cc: SNV Krishna; r-help@r-project.org Subject: Re: [R] text matching On Sep 19, 2011, at 7:05 AM, Sarah Goslee wrote: > Hi, > > On Mon, Sep 19, 2011 at 6:15 AM, SNV Krishna >

Re: [R] text matching

2011-09-19 Thread David Winsemius
On Sep 19, 2011, at 7:05 AM, Sarah Goslee wrote: Hi, On Mon, Sep 19, 2011 at 6:15 AM, SNV Krishna wrote: Hi All, I have a character vector by name tickers head(tickers,10) V1 1 ADARSHPL.BO 2AGR.V 3 AGU 4 AGU.TO 5 AIMCO.BO 6 ALUFLUOR.BO 7

Re: [R] text matching

2011-09-19 Thread Sarah Goslee
Hi, On Mon, Sep 19, 2011 at 6:15 AM, SNV Krishna wrote: > Hi All, > > I have a character vector by name tickers > >> head(tickers,10) > >            V1 > 1  ADARSHPL.BO > 2        AGR.V > 3          AGU > 4       AGU.TO > 5     AIMCO.BO > 6  ALUFLUOR.BO > 7        AMZ.V > 8          AVD > 9  ANIL

[R] text matching

2011-09-19 Thread SNV Krishna
Hi All, I have a character vector by name tickers > head(tickers,10) V1 1 ADARSHPL.BO 2AGR.V 3 AGU 4 AGU.TO 5 AIMCO.BO 6 ALUFLUOR.BO 7AMZ.V 8 AVD 9 ANILPROD.BO 10ARIES.BO I would like to extract all elements that has ".BO" in it.

[R] Text mining analysis methods

2011-08-28 Thread mpavlic
Hi all, i am trying to do some text mining in R. So far I managed to do some text mining like TermDocumentMatrices and word count and similiar things. What I would like to do is this : I have a soil descriptions from borehole logs that corresponds to soil classes. The problem is that some of th

Re: [R] Text wrap

2011-08-16 Thread Filoche
Thank you Mark for your help. It worked perfectly with 2 expression and mtext. Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/Text-wrap-tp3747574p3747884.html Sent from the R help mailing list archive at Nabble.com. __ R-

Re: [R] Text wrap

2011-08-16 Thread Marc Schwartz
On Aug 16, 2011, at 10:39 AM, Filoche wrote: > Hi everyone. > > I have a long label that I would like to split. I found that I could use > "strwrap" for simple text. However, this is not working with this label: > > str = expression(paste("< 20 µm phytoplankton ","(cells · ",mL^-1,")")) > > pl

Re: [R] Text wrap

2011-08-16 Thread David Winsemius
On Aug 16, 2011, at 11:39 AM, Filoche wrote: Hi everyone. I have a long label that I would like to split. I found that I could use "strwrap" for simple text. However, this is not working with this label: plot(, ylab = strwrap(str,20),...) I suspect this is because I'm using "express

[R] Text wrap

2011-08-16 Thread Filoche
Hi everyone. I have a long label that I would like to split. I found that I could use "strwrap" for simple text. However, this is not working with this label: str = expression(paste("< 20 µm phytoplankton ","(cells · ",mL^-1,")")) plot(, ylab = strwrap(str,20),...) I suspect this is because

Re: [R] Text annotation of a graph

2011-08-05 Thread Lisa
Thank you. I will try this. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Text-annotation-of-a-graph-tp3719775p3722163.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://sta

Re: [R] Text annotation of a graph

2011-08-05 Thread Greg Snow
ct.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Lisa > Sent: Friday, August 05, 2011 11:42 AM > To: r-help@r-project.org > Subject: Re: [R] Text annotation of a graph > > Thanks you for your reply. > > I consider only the performance of “vars” (v1 to v10), so I jus

Re: [R] Text annotation of a graph

2011-08-05 Thread Lisa
Thanks you for your reply. I consider only the performance of “vars” (v1 to v10), so I just want to indicate then on the y-axis at the point they should be located. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Text-annotation-of-a-graph-tp3719775p3721799.html Sent from

Re: [R] Text annotation of a graph

2011-08-05 Thread Benno Pütz
Hi Lisa, On 4.Aug.2011, at 22:24, Lisa wrote: > Dear All, > > I am trying to add some text annotation to a graph using matplot() as > follows: > > vars <- c("v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v8", "v10") > id <- seq(5.000, 0.001, by = -0.001) > sid <- c(4.997, 3.901, 2.339, 0

[R] Text annotation of a graph

2011-08-04 Thread Lisa
Dear All, I am trying to add some text annotation to a graph using matplot() as follows: vars <- c("v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v8", "v10") id <- seq(5.000, 0.001, by = -0.001) sid <- c(4.997, 3.901, 2.339, 0.176, 0.151, 0.101, 0.076, 0.051, 0.026, 0.001) rn <- sample

  1   2   3   >