Created
August 10, 2010 21:49
-
-
Save citizen428/518090 to your computer and use it in GitHub Desktop.
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
(use '(incanter core charts io)) |
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
(def all-langs (read-dataset "Downloads/git_lang_stats.txt" | |
:header true | |
:delim \;)) | |
(def func-langs #{"Clojure" "Erlang" "F#" "Haskell" "OCaml" "Scala" "Scheme"}) |
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
(with-data ($where {:Language {:$in func-langs}} all-langs) |
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
(view (bar-chart :Language | |
(map / ($ :Repositories) ($ :Users)) | |
:title "Repositories per user on Github" | |
:x-label "Language" | |
:y-label "Repositories/user")) |
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
(view all-langs) |
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
(use '(incanter core charts io)) | |
(def all-langs (read-dataset "Downloads/git_lang_stats.txt" | |
:header true | |
:delim \;)) | |
(def func-langs #{"Clojure" "Erlang" "F#" "Haskell" "OCaml" "Scala" "Scheme"}) | |
(with-data ($where {:Language {:$in func-langs}} all-langs) | |
(view (bar-chart :Language | |
:Users | |
:title "Users per language on Github" | |
:x-label "Language" | |
:y-label "Users" | |
:set-theme :dark)) | |
(view (bar-chart :Language | |
:Repositories | |
:title "Repositories per language on Github" | |
:x-label "Language" | |
:y-label "Repositories")) | |
(view (bar-chart :Language | |
(map / ($ :Repositories) ($ :Users)) | |
:title "Repositories per user on Github" | |
:x-label "Language" | |
:y-label "Repositories/user")) | |
(view (pie-chart :Language | |
:Users | |
:title "Users of functional languages on Github" | |
:legend true))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment