Questions tagged [incanter]

Incanter is a Clojure-based, R-like platform for statistical computing and graphics.

Incanter can be used as a standalone, interactive data analysis environment or embedded within other analytics systems as a modular suite of libraries.

Features:

  • Charting & visualization functions
  • Mathematical functions
  • Statistical functions
  • Matrix & linear algebra functions
  • Data manipulation functions
68 questions
2
votes
1 answer

Clojure/Incanter scatter-plot: controlling size of points

I am plotting a scatter-plot, using Clojure and Incanter. I need to control the size of the points in the graph/plot. This is the basic code that I have. I am using a different domain and range for my data, but the question is the same. This plots…
germ13
  • 532
  • 1
  • 5
  • 12
1
vote
2 answers

Load complex MATLAB .mat file in clojure / Incanter

In my quest to get ride of MATLAB and replace it with Incanter / Clojure I need to be able to load or at least convert a few terabytes of matlab .mat files. As these are rather complex mat files, with structs and cell arrays nested in all different…
Ali
  • 18,665
  • 21
  • 103
  • 138
1
vote
0 answers

Vertically aligning multiple timeseries plots

I've got measurements of several different quantities made during the same range of time. How can I plot them all in the same window, so they're all vertically aligned—that is, so that for any given time t, all the data points for that time have the…
Ben Kovitz
  • 4,920
  • 1
  • 22
  • 50
1
vote
2 answers

Leiningen: working with local git repo

I want to change something in incanter, so I created a fork on github and a clone of it on my laptop. Now, when I try to run tests with lein test I get these errors: /Users/me/work/incanter$ lein test Could not find artifact…
piokuc
  • 25,594
  • 11
  • 72
  • 102
1
vote
1 answer

Fractional Matrix Power in Clojure

I am trying working with transition matricies in clojure. In converting say an annual bond rating transition matrix to quarterly, I need 0.25 power of a square matrix. In python, we have the fractional_matrix_power from scipy as: >>> from…
Phil Cooper
  • 5,747
  • 1
  • 25
  • 41
1
vote
1 answer

How to get a normalized staked bar chart using Incanter?

Following this example, (use '(incanter core stats charts datasets)) (with-data (get-dataset :airline-passengers) (view (stacked-bar-chart :month :passengers :group-by :year :legend true))) How can I make each global bar equal to 100%,…
leontalbot
  • 2,513
  • 1
  • 23
  • 32
1
vote
1 answer

Using Incanter and Clojure Soup together

I am learning Clojure - it's a lot of fun! I am trying to use Incanter and Clojure Soup in the same file: (require '[jsoup.soup :as soup]) (use '(incanter core stats io charts datasets)) And I get the following error: CompilerException…
1
vote
1 answer

Center Incanter histogram x-axis tick marks directly underneath bars

I want to align my x-axis labels in Incanter's histogram (based on JFreeChart) so that they are centered under the bars. I also want to get rid of the fractional axis tick marks. My question is very similar to JFreeChart: Aligning domain axis with…
David J.
  • 31,569
  • 22
  • 122
  • 174
1
vote
0 answers

leiningen and counterclockwise dependencies issue

I got the following Error while using counterclockwise an Eclipse Ide for Clojure and leiningen Description Resource Path Location Type Leiningen Managed Dependencies issue: problem resolving following dependencies:…
user977828
  • 7,259
  • 16
  • 66
  • 117
1
vote
0 answers

incanter charts cannot be found

I build a new project using leiningen to test incanter: lein new testincanter Then, in project.clj, I put this: (defproject testincanter "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :license {:name…
1
vote
1 answer

Plotting nested vectors

Consider a function that outputs a nested vector such as [[[-0.6925523827697917 -0.4095089425269985] [-0.03856010899727634 0.8427233420960013] [-2.609986195686694E-13 -1.680032093051418E-12]] [[0.7203362514229046 -0.3494564274369062]]] In…
sunspots
  • 1,047
  • 13
  • 29
1
vote
1 answer

Transform Incanter matrix to nested vector

Consider a function that outputs an Incanter matrix. Here is an example matrix containing output from the function: A 6x4 matrix -4.77e-01 8.45e-01 1.39e-01 -9.83e-18 8.55e-01 2.49e-01 1.33e-01 2.57e-17 -2.94e-03 6.60e-03 -9.63e-01 …
sunspots
  • 1,047
  • 13
  • 29
1
vote
2 answers

Problems while opening the REPL

Anytime I fire up a fresh REPL I always get the same message, namely # The namespace I've been using is ns…
sunspots
  • 1,047
  • 13
  • 29
1
vote
1 answer

Why do incanter, other than incanter itself, namespaces expecting clojure/core/matrix class or .clj?

In a .clj file I have (use '(incanter core io ...)). This error occurs when attempting to evaluate that code: FileNotFoundException Could not locate clojure/core/matrix__init.class or clojure/core/matrix.clj on classpath: clojure.lang.RT.load…
Brian
  • 129
  • 1
  • 9
1
vote
1 answer

Incanter - How can I use filter with column keywords instead of nth?

(require '[incanter.core :as icore]) ;; Assume dataset "data" is already loaded by incanter.core/read-dataset ;; Let's examine the columns (note that Volume is the 5th column) (icore/col-names data) ==> [:Date :Open :High :Low :Close :Volume] ;;…
Badmanchild
  • 990
  • 9
  • 18