This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| title: "Cluster Analysis on Cars" | |
| author: "Rohit Rana" | |
| date: '`r Sys.Date()`' | |
| output: | |
| html_document: default | |
| pdf_document: default | |
| --- | |
| ## Cluster analysis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## un-comment th eline below to install googleVis package | |
| ##install.packages("googleVis", dependencies = TRUE) | |
| library(googleVis) | |
| #op <- options(gvis.plot.tag='chart') # uncomment to dump the output as html | |
| head(Exports) # let's peek at the data | |
| # this function does the bulk of the work | |
| Geo <- gvisGeoChart(Exports, locationvar='Country', colorvar='Profit', | |
| options=list(height=300, width=350)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The script that I use to broadcast tweets about | |
| # Nike to Dashku's demo account, in CoffeeScript. | |
| # require some npm libraries | |
| Twit = require 'twit' | |
| analyze = require('Sentimental').analyze | |
| Placefinder = require 'placefinder' | |
| dashku = require 'dashku' | |
| # Set your API Key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virtualenv locust | |
| cd locust | |
| source bin/activate | |
| git clone https://github.com/locustio/locust.git | |
| cd locust | |
| sudo port install libevent | |
| CFLAGS="-I /opt/local/include -L /opt/local/lib" pip install gevent | |
| python setup.py install | |
| # run locust |