Skip to content

kmeans and plot labels

3 messages · Meesters, Christian, Sarah Goslee

#
Hi,

You include no context, and I only vaguely remember your original
question. You also don't include a reproducible example.

But perhaps this helps?

testmat <- data.frame(x=c(1,1,2,3), y=c(2,1,3,2), names=letters[1:4],
stringsAsFactors=FALSE)
with(testmat, plot(x, y, pch=names))

or

with(testmat, plot(x, y, type="n"))
with(testmat, text(x, y, names))

Otherwise you'll have to actually follow the posting guide and
pose a fully self-contained question.

Sarah
On Fri, Dec 16, 2011 at 4:25 AM, Meesters, Christian <meesters at aesku.com> wrote:

  
    
#
Hi,

You are right - I promise improvement of my way to ask.

Anyhow, thanks to your comparisons I got much better insight in the way plotting environments can be altered - and have my solution. Thank you.

Christian