Skip to content

Instantly share code, notes, and snippets.

View mfarkhann's full-sized avatar

Farkhan Novianto mfarkhann

View GitHub Profile
@mfarkhann
mfarkhann / lsa_mds.R
Created November 11, 2013 09:17 — forked from meefen/lsa_mds.R
# load required libraries
library(tm)
library(ggplot2)
library(lsa)
# 1. Prepare mock data
text <- c("transporting food by cars will cause global warming. so we should go local.",
"we should try to convince our parents to stop using cars because it will cause global warming.",
"some food, such as mongo, requires a warm weather to grow. so they have to be transported to canada.",
"a typical electronic circuit can be built with a battery, a bulb, and a switch.",