bmschmidt/wordVectors

How to get plot points

revsequin opened this issue · 1 comments

Hi!

I am able to see the plot on my screen using R Studio, but I'm unable to get the x- and y- coordinates of the words I plotted.

plot(model, perplexity=50)

Also, how do I write those plot points (x- and y- coordinates, not the vectors) to a csv or txt file?

I was just now able to write the x and y coordinates to a csv file, but now I would like to write the x and y coordinates from the "pca" version.

For example:
This works:

write.csv(plot(model,perplexity=50),file="filename.csv")

This doesn't work (the csv file is blank after I run this):
write.csv(plot(as.VectorSpaceModel(model),method="pca"),file="vectoroutput.csv")

Any suggestions would be great?

Thanks!