clj-wordcloud.core

word-cloud

(word-cloud frequency-map)(word-cloud frequency-map options)
Takes a map of string and the score along with options to return a wordcloud object
Options spec as below :

{:dimension  {:width  600              ; width of the image
              :height 600}             ; height of the image
 :background {:type :circle            ; type. Takes :circle, :pixel (bitmaps), :rectangle
              :size 300                ; size of the circle
              :color "0x000000"}     ; Background color as hex
  :font       {:type       "Calibre" ; Font type
               :weight     :plain      ; Font weight. Takes :plain, :bold, :italic
               :scale-type :linear     ; linear for now
               :x-scale    20          ; x scale of font
               :y-scale    20          ; y scale of font
               :padding    5}}         ; padding between entries

write-to-file

(write-to-file word-cloud filename)
Writes the word cloud object as png image to the given location.
Supply file name with extension png like example.png