Non-metric multidimensional scaling in d3.js

180 views
Skip to first unread message

PRATEEK DWIVEDI

unread,
Mar 16, 2017, 2:08:10 PM3/16/17
to d3-js
Hello Guys,

I want to create a MDS in d3.js. I have a user survey in which, users have answered some tasks. within each task, we have several subtasks. Below picture will articulate the scenario. I want to code this in d3.js 

Please help.


 

Seemant Kulleen

unread,
Mar 16, 2017, 7:37:29 PM3/16/17
to d3-js
Happy Thursday/Friday Prateek!

(I hesitated to answer because I'm not sure what an MDS is, so I may not be your target audience at all).

With that in mind:

Do you have some d3 code for which you need debugging assistance?
Or are you seeking more general guidance and advice?

Thanks in advance for your patience and clarification.

Cheers,
Seemant



--
Oakland Finish Up Weekend
Be Amazed.  Be Amazing.
Get Mentored | Get Inspired | Finish Up
http://oaklandfinishup.com


--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

PRATEEK DWIVEDI

unread,
Mar 16, 2017, 9:39:28 PM3/16/17
to d3...@googlegroups.com
Sorry Sir,

I don't have any code in d3.js. I am just asking a generic thing so, I can get some rough idea.

--
You received this message because you are subscribed to a topic in the Google Groups "d3-js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/d3-js/B5jaQPP8pH0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to d3-js+unsubscribe@googlegroups.com.

Olha Buchel

unread,
Mar 16, 2017, 9:59:16 PM3/16/17
to d3...@googlegroups.com
Hi Prateek,

You can do analysis in R, save the results in JSON, using jsonlite package and 
plot the results on a scatter plot using d3.js

I hope this helps,

Olha

PRATEEK DWIVEDI

unread,
Mar 16, 2017, 10:31:13 PM3/16/17
to d3...@googlegroups.com
Thanks for your Help. But, I am getting data dynamically (user submissions will change) which means I have only two options : 
 1. Connect d3.js with r (run-time) [I am using wampserver]
 2. Create the scatterplot using d3.js or javascript

Olha Buchel

unread,
Mar 17, 2017, 10:52:35 AM3/17/17
to d3...@googlegroups.com
You can connect R and D3 dynamically using R packages like opencpu https://www.opencpu.org.


Olha

PRATEEK DWIVEDI

unread,
Mar 17, 2017, 12:40:49 PM3/17/17
to d3...@googlegroups.com
I tried Opencpu before, but, I don't know how to use it with Wampserver.... I tried a lot looking for some documentation but, I didn't get any...

Olha Buchel

unread,
Mar 17, 2017, 12:48:59 PM3/17/17
to d3...@googlegroups.com
It is probably better to run an R server on Linux...
But... Email the creator of opencpu package and ask him.
He can help.

Olha

Olha Buchel

unread,
Mar 17, 2017, 1:27:44 PM3/17/17
to d3...@googlegroups.com
Here is an example of metric mds in javascript and d3.

Olha

PRATEEK DWIVEDI

unread,
Mar 17, 2017, 1:31:58 PM3/17/17
to d3...@googlegroups.com
Thanks Olha... I saw this post before.... But, in my case, I need to work on Non-Metric MDS in d3.js

Olha Buchel

unread,
Mar 17, 2017, 2:15:56 PM3/17/17
to d3...@googlegroups.com
Another option: you can process it in Python and feed in the results to D3.

Olha
Reply all
Reply to author
Forward
0 new messages