Re: [R] Changing the label name in the plot

2019-06-12 Thread Jim Lemon
It is good to see someone learning about how the code works, beyond just getting the answer. 1) The header argument means, "is the first line of the file a header?". In this case it should be TRUE. the stringsAsFactors argument means "should character strings be converted to factors" (a combinatio

Re: [R] Changing the label name in the plot

2019-06-12 Thread Subhamitra Patra
Dear Sir, Thank you very much. The code which you suggested worked like awesome magic which gave the expected result what I really wanted. For this help, I shall be always grateful to you. Last time also, your intelligent help, and encouraging support had solved my problem. I really appreciate you

Re: [R] Changing the label name in the plot

2019-06-11 Thread Jim Lemon
Hi Subhamitra, I may have a better understanding. I have made up the second set of top level domains as I have no idea what they may be. I hope that this is an improvement. spdf<-read.table(text="States1 DMs States2 EMs JP 2.071 YA 2.038 CH 2.0548 YB 2.017 AT 2.0544 YC 2.007 CL 2.047 YD 1.963 ES 2

Re: [R] Changing the label name in the plot

2019-06-11 Thread Subhamitra Patra
Hello Sir, Thank you very much for your help for which I shall be always grateful to you. Concerning your questions, "*1) Are the states in column 3 the same as those in column 1? As you initially named the data frame "ts", perhaps the values in columns 2 and are taken at different times. If not,

Re: [R] Changing the label name in the plot

2019-06-11 Thread Jim Lemon
Hi Subhamitra, It is time to admit that I had the wrong idea about what you wanted to do, due to the combination of trying to solve two problems at once while I was very tired. I appreciate your patience. >From your last email, you have a data frame with four columns. The first and third are crypt

Re: [R] Changing the label name in the plot

2019-06-11 Thread Bert Gunter
t; > Cheers. > Petr > > From: Bert Gunter > Sent: Tuesday, June 11, 2019 3:15 PM > To: PIKAL Petr > Cc: Subhamitra Patra ; Jim Lemon < > drjimle...@gmail.com>; r-help mailing list > Subject: Re: [R] Changing the label name in the plot > > There appear to be

Re: [R] Changing the label name in the plot

2019-06-11 Thread Subhamitra Patra
gt;> >> -----Original Message----- >> From: R-help On Behalf Of Subhamitra Patra >> Sent: Tuesday, June 11, 2019 10:49 AM >> To: Jim Lemon ; r-help mailing list < >> r-help@r-project.org> >> Subject: Re: [R] Changing the label name in the plot >

Re: [R] Changing the label name in the plot

2019-06-11 Thread PIKAL Petr
From: Bert Gunter Sent: Tuesday, June 11, 2019 3:15 PM To: PIKAL Petr Cc: Subhamitra Patra ; Jim Lemon ; r-help mailing list Subject: Re: [R] Changing the label name in the plot There appear to be two columns with the same name. Surely this will cause problems. Bert Gunter "The trou

Re: [R] Changing the label name in the plot

2019-06-11 Thread Bert Gunter
uesday, June 11, 2019 10:49 AM > To: Jim Lemon ; r-help mailing list < > r-help@r-project.org> > Subject: Re: [R] Changing the label name in the plot > > Hello Sir, > > Thank you very much for your help. I tried your suggestion but got some > error, which I am pasting below

Re: [R] Changing the label name in the plot

2019-06-11 Thread PIKAL Petr
t; : NAs introduced by coercion So there must be another issue with your data. Cheers Petr -Original Message- From: R-help On Behalf Of Subhamitra Patra Sent: Tuesday, June 11, 2019 10:49 AM To: Jim Lemon ; r-help mailing list Subject: Re: [R] Changing the label name in the plot He

Re: [R] Changing the label name in the plot

2019-06-11 Thread Subhamitra Patra
Hello Sir, Thank you very much for your help. I tried your suggestion but got some error, which I am pasting below. Error: unexpected symbol in: " header" > library(cluster) Warning message: package ‘cluster’ was built under R version 3.5.3 > k2 <- kmeans(ts, centers = 2, nstart =

Re: [R] Changing the label name in the plot

2019-06-11 Thread Jim Lemon
Hi Subhamitra, I don't have the factoextra package, but this may give you what you want: ts<-read.table(text="Name DMs Name EMs A 2.071 a 2.038 B 2.0548 b 2.017 C 2.0544 c 2.007 D 2.047 d 1.963 E 2.033 f 1.947 F 2.0327 g 1.942 G 2.0321 h 1.932 H 2.031 i 1.924 I 2.0293 j 1.913 J 2.0291 k 1.906 K 2.

Re: [R] Changing the label name in the plot

2019-06-11 Thread Subhamitra Patra
11, 2019 8:05 AM > To: ঋষি ( ऋषि / rIsHi ) > Cc: r-help mailing list > Subject: Re: [R] Changing the label name in the plot > > Please find the attached data. > > [image: Mailtrack] > < > https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signatu

Re: [R] Changing the label name in the plot

2019-06-11 Thread PIKAL Petr
mailing list Subject: Re: [R] Changing the label name in the plot Please find the attached data. [image: Mailtrack] <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&;> Sender notified by Mailtrack <https://mailtrack.io?utm_source=gmail

Re: [R] Changing the label name in the plot

2019-06-11 Thread Subhamitra Patra
Please find the attached data. [image: Mailtrack] Sender notified by Mailtrack 06/11/19, 12:32:48 PM On Tue