[R] Changing the label name in the plot

PIKAL Petr petr@p|k@| @end|ng |rom prechez@@cz
Tue Jun 11 09:35:27 CEST 2019


Attachments are not alowed (mostly) on this list.

Use ?dput to show your data or at least part of your data illustrating the problém.

Cheers
Petr

-----Original Message-----
From: R-help <r-help-bounces using r-project.org> On Behalf Of Subhamitra Patra
Sent: Tuesday, June 11, 2019 8:05 AM
To: ঋষি ( ऋषि / rIsHi ) <rishi.dasroy using gmail.com>
Cc: r-help mailing list <r-help using r-project.org>
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&utm_medium=signature&utm_campaign=signaturevirality5&>
06/11/19,
12:32:48 PM

On Tue, Jun 11, 2019 at 12:09 PM ঋষি ( ऋषि / rIsHi ) <rishi.dasroy using gmail.com>
wrote:

> I can not see the attached data
>
> On Tue, 11 Jun 2019, 10:14 Subhamitra Patra,
> <subhamitra.patra using gmail.com>
> wrote:
>
>> Dear R-users,
>>
>> I am doing cluster analysis, but when I am plotting the results, the no.
>> of
>> observation is coming as the level. Hence, I have a different level
>> name for each observation differently for each column. I have 2
>> columns, namely DMs, and EMs, which will be clustered, but I am
>> unable to label each dot in the cluster as per their different name.
>> In other words, the dots in the cluster are being labeled as per
>> their number of observation which I want to rename as per their
>> different name in the data. But, sometimes in code, both the columns
>> indicating the cluster names are not supporting due to their
>> non-numerical texts.
>>
>> Hence, my query is how to rename or change the label of each dot in a
>> cluster. Here is my code.
>>
>> library(tidyverse)
>> library(cluster)
>> library(factoextra)
>> k2 <- kmeans(ts, centers = 2, nstart = 25) fviz_cluster(k2, data =
>> ts)
>>
>> Here, I have 2 columns i.e. DMs, and EMs with their different label
>> name (i.e. the different name for different observation differently
>> for 2 columns), and want to plot such label name in the cluster graph
>> rather than the no. of observation.
>>
>> For your convenience, I am attaching my data.
>>
>> Please find the attached data, and kindly help me in this regard.
>>
>> Thank you.
>>
>>
>>
>> --
>> *Best Regards,*
>> *Subhamitra Patra*
>> *Phd. Research Scholar*
>> *Department of Humanities and Social Sciences* *Indian Institute of
>> Technology, Kharagpur*
>> *INDIA*
>>
>> [image: Mailtrack]
>> <
>> https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campai
>> gn=signaturevirality5&
>> >
>> Sender
>> notified by
>> Mailtrack
>> <
>> https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campai
>> gn=signaturevirality5&
>> >
>> 06/11/19,
>> 9:54:45 AM
>> ______________________________________________
>> R-help using 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/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>

--
*Best Regards,*
*Subhamitra Patra*
*Phd. Research Scholar*
*Department of Humanities and Social Sciences* *Indian Institute of Technology, Kharagpur*
*INDIA*
______________________________________________
R-help using 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/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Osobní údaje: Informace o zpracování a ochraně osobních údajů obchodních partnerů PRECHEZA a.s. jsou zveřejněny na: https://www.precheza.cz/zasady-ochrany-osobnich-udaju/ | Information about processing and protection of business partner’s personal data are available on website: https://www.precheza.cz/en/personal-data-protection-principles/
Důvěrnost: Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a podléhají tomuto právně závaznému prohláąení o vyloučení odpovědnosti: https://www.precheza.cz/01-dovetek/ | This email and any documents attached to it may be confidential and are subject to the legally binding disclaimer: https://www.precheza.cz/en/01-disclaimer/



More information about the R-help mailing list