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
1
vote
2 answers

Why does Incanter lose column title when only querying one column?

When selecting two columns from a dataset, the result has the two given column titles as expected. But when only specifying one column, the one resulting column loses it's title, instead, it is titled "0": This makes it hard to use $order or…
0dB
  • 675
  • 5
  • 13
1
vote
0 answers

How can I keep column titles when using to-matrix?

I tried to do "Principal components analysis" with Incanter today. What I don't have yet, though, is an appropriate legend. I can add a legend, but it's only numbers instead of names. in this post from 2010 they show how Incanter keeps the column…
Daniel Ziltener
  • 647
  • 1
  • 6
  • 21
1
vote
1 answer

Why does Incanter return number instead of sequence when result is one value?

I am having an issue that can be reduced to the following problem: When the result of a query is one value, sel / $ returns a number, when it is more than one value, it is a sequence: (with-data (to-dataset [[1 2] [3 4]]) ($ :col-1)) yields (2…
0dB
  • 675
  • 5
  • 13
1
vote
1 answer

Use of incanter $map some clarification

Assume an incanter dataset, freqs, of k columns of integers. I want to convert say 2 of the columns into values between 0 to 1 by dividing each column value by a fixed value, say 20. I can do this using the $map function for 1 column: ($map (fn [x]…
Brian
  • 129
  • 1
  • 9
1
vote
1 answer

Ways to quickly update an element of a matrix in Incanter, Clojure?

Suppose I have a 3x3 matrix (def myMatrix (matrix (range 9) 3)) ; A 3x3 matrix ; ------------- ; 0.00e+00 1.00e+00 2.00e+00 ; 3.00e+00 4.00e+00 5.00e+00 ; 6.00e+00 7.00e+00 8.00e+00 I can use $ to get an element, say 2nd row 1st column…
Kevin Zhu
  • 2,746
  • 26
  • 23
1
vote
1 answer

How can I create an Incanter series based on a range of values

I've got an Incanter dataset with 3 columns: a date/timestamp, a response time and a message size. What I'd like to do is create a scatter plot with the date/timestamp on the x axis and response times as the y axis. This is easy enough, but I'd like…
stand
  • 3,054
  • 1
  • 24
  • 27
0
votes
2 answers

How to change the matrix's element with incanter?

How to change a element in the matrix? According to Incanter document, the library is built on top of Clatrix. With Clatrix, set an element in the matrix with the command (set A 1 2 0). Please comment how to set the element in incanter. Thank…
madeinQuant
  • 1,721
  • 1
  • 18
  • 29
0
votes
1 answer

How can you set the color of Incanter's add-lines?

When calling the add-lines function from the Clojure library Incanter, the added lines will use every color in the rainbow. However, I want every added line to be black. Figuring out how to do this has proven remarkably tricky. Can somebody help?
Sebastian Oberhoff
  • 1,271
  • 1
  • 10
  • 16
0
votes
1 answer

Use plugins specified in profile.clj

I added some plugins to my profile.clj. When I start a new repl they are downloaded correctly to my .m2/repository directory, but I'm unable to (use '...) them, because this is throwing a FileNotFoundException. So how can I use these plugins in a…
spaenigs
  • 152
  • 1
  • 10
0
votes
1 answer

Getting the mean and covariance matrix from array in clojure using incanter

I am trying to get the array mean and covariance matrix from a data structure that is 1000x2 using incanter. My test case looks as such (ns test.mean-cov (:require clojure.string [incanter.core :as in-core] [incanter.stats…
Astrid
  • 1,846
  • 4
  • 26
  • 48
0
votes
1 answer

Is there a convenient way to read non-utf8 encoding file into incanter?

It seems Incanter can only recognize utf-8 encoding file while native clojure slurp can read non-utf8 encoding file with :encoding keyword, So is it possible to combine those two functions together ,but I don't know how to do that!
sage han
  • 195
  • 1
  • 1
  • 7
0
votes
1 answer

ClassCastException while using :group-by option for scatter-plot in Incanter

I'm using Incanter 1.9 and I can't get :group-by option in scatter-plot function to work. The statement I am currently trying is: (view (scatter-plot :Sepal.Length :Sepal.Width :group-by :Species :data (get-dataset :iris))) It produces this…
Rinu Boney
  • 93
  • 1
  • 3
0
votes
2 answers

lein deps fails on incanter cloned from github

Cloned incanter from github. When I try to do a lein deps, I get a bunch of errors: idf@idf-Satellite-C55t-A ~/Documents/clojure $ git clone https://github.com/incanter/incanter.git Cloning into 'incanter'... remote: Counting objects: 12328,…
Ivan
  • 7,448
  • 14
  • 69
  • 134
0
votes
1 answer

Something amiss with some incanter functions

While usng Incanter 1.5.5 I wanted to use this function: (sample-neg-binomial 10) which gives an unresolved symbol error. To be sure the project dependencies are up-to-date I re-ran Lein deps. Same error. This (:use [incanter core charts io datasets…
Brian
  • 129
  • 1
  • 9
0
votes
1 answer

What language or tool does Google use in plotting graph on its web search?

Here is the result when I search log x graph in Google: https://www.google.com/search?q=log+x+graph&ie=utf-8&oe=utf-8&aq=t#newwindow=1&q=log+x+graph The nice thing is that when I hover the mouse over the graph, it displays the values of (x,y). What…
Nick
  • 8,451
  • 13
  • 57
  • 106