Change the labels of plotcluster() in R
up vote
1
down vote
favorite
I am trying to label the data points in the plot below, is there any parameter that controls the labels in plotcluster()? Ideally, I would like to have as label the row name of each datapoint instead of the number of its cluster, and keep the color to separate clusters.

I am using this code to produce the plot, where seedsSD is a matrix and myKmeans3$cluster is the cluster each point is assigned to.
plotcluster(seedsSD, myKmeans3$cluster)
r plot label cluster-computing visualization
add a comment |
up vote
1
down vote
favorite
I am trying to label the data points in the plot below, is there any parameter that controls the labels in plotcluster()? Ideally, I would like to have as label the row name of each datapoint instead of the number of its cluster, and keep the color to separate clusters.

I am using this code to produce the plot, where seedsSD is a matrix and myKmeans3$cluster is the cluster each point is assigned to.
plotcluster(seedsSD, myKmeans3$cluster)
r plot label cluster-computing visualization
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am trying to label the data points in the plot below, is there any parameter that controls the labels in plotcluster()? Ideally, I would like to have as label the row name of each datapoint instead of the number of its cluster, and keep the color to separate clusters.

I am using this code to produce the plot, where seedsSD is a matrix and myKmeans3$cluster is the cluster each point is assigned to.
plotcluster(seedsSD, myKmeans3$cluster)
r plot label cluster-computing visualization
I am trying to label the data points in the plot below, is there any parameter that controls the labels in plotcluster()? Ideally, I would like to have as label the row name of each datapoint instead of the number of its cluster, and keep the color to separate clusters.

I am using this code to produce the plot, where seedsSD is a matrix and myKmeans3$cluster is the cluster each point is assigned to.
plotcluster(seedsSD, myKmeans3$cluster)
r plot label cluster-computing visualization
r plot label cluster-computing visualization
edited Nov 10 at 16:27
Matt Ke
5521218
5521218
asked Nov 10 at 14:19
Alex S
87
87
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239855%2fchange-the-labels-of-plotcluster-in-r%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password