Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get plot points #46

Open
revsequin opened this issue Mar 14, 2018 · 1 comment
Open

How to get plot points #46

revsequin opened this issue Mar 14, 2018 · 1 comment

Comments

@revsequin
Copy link

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?

@revsequin
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant