Last active
September 5, 2016 08:54
-
-
Save twielfaert/612cd7b27b7654e6f35f7e27e4a34c5d to your computer and use it in GitHub Desktop.
LDNA scatter plot matrices for clustering comparisons
This file contains 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
id | solution1.x | solution1.y | solution1.label | solution2.x | solution2.y | solution2.label | solution3.x | solution3.y | solution3.label | solution4.x | solution4.y | solution4.label | solution5.x | solution5.y | solution5.label | solution6.x | solution6.y | solution6.label | freq | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
communication | 0.8085604592 | 0.5103165469 | 1 | 0.7096731926 | 0.3802275783 | 1 | 0.6121870263 | 0.4684715449 | 1 | 0.8890548155 | 0.3927934925 | 1 | 0.3004217462 | 0.0460400124 | 1 | 0.4597825907 | 1.0176514307 | 1 | 92 | |
parachute | 0.7368505618 | 0.4837848674 | 1 | 0.7965505833 | 0.4263396659 | 1 | 0.7938971683 | 0.4779664178 | 1 | 0.9006071882 | 0.3917213385 | 1 | -0.3502423711 | 0.3276000474 | 1 | 0.472213193 | 1.1414962503 | 1 | 7 | |
mood | 0.8503814604 | 0.4415388528 | 1 | 0.7633293715 | 0.4347236539 | 1 | 0.7174119995 | 0.4063882094 | 1 | 0.8994374844 | 0.2927547272 | 1 | -0.3040437121 | 0.3231962821 | 1 | 0.6296214448 | 1.2151529937 | 1 | 73 | |
influence | 0.6302595039 | 0.4589844762 | 1 | 0.7522483309 | 0.3631453214 | 1 | 0.7562200457 | 0.527158341 | 1 | 0.9283246872 | 0.3693180267 | 1 | -0.3642369266 | 0.0816015765 | 1 | 0.7850673244 | 0.981597486 | 1 | 58 | |
available | 0.9070636349 | 0.5317647274 | 1 | 0.7617765275 | 0.4794547594 | 1 | 0.5667472708 | 0.4387657972 | 1 | 0.9506856437 | 0.3825392438 | 1 | 0.1895232266 | 0.1358436199 | 1 | 0.4128137153 | 1.0430641105 | 1 | 17 | |
momentum | 0.7056420645 | 0.4400496126 | 1 | 0.7009332899 | 0.576462413 | 1 | 0.6824204799 | 0.3269491808 | 1 | 0.9092048289 | 0.3855866934 | 1 | 0.032870579 | 0.090121754 | 1 | 0.3001288661 | 0.9133400621 | 1 | 82 | |
language | 0.6810938884 | 0.5036743354 | 1 | 1.0589459496 | 0.4744748818 | 1 | 0.8930124611 | 0.4799582599 | 1 | 0.9457925298 | 0.271957503 | 1 | -0.0202929485 | 0.1346537975 | 1 | 0.6138610424 | 0.8645081282 | 1 | 7 | |
dish | 0.819614905 | 0.5234074725 | 1 | 0.7947982428 | 0.5763372215 | 1 | 0.6815620956 | 0.4627255999 | 1 | 0.8540607742 | 0.3194558452 | 1 | 0.0906533056 | -0.1411772485 | 1 | 0.1508409611 | 0.8432336092 | 1 | 80 | |
contradiction | 0.8220155678 | 0.4675299383 | 1 | 0.7749411338 | 0.6025343181 | 1 | 0.7649153244 | 0.3227315808 | 1 | 0.8936543718 | 0.3470190684 | 1 | -0.0696492797 | 0.3518832617 | 1 | 0.6579713967 | 0.9992580757 | 1 | 76 | |
oak | 0.681723672 | 0.5431527381 | 1 | 0.8551456569 | 0.5440230779 | 1 | 0.8276023163 | 0.6425840629 | 1 | 0.8751198989 | 0.256585205 | 1 | -0.5402557473 | 0.057110248 | 1 | 0.3484035316 | 0.7439626352 | 1 | 91 | |
spin | 0.6924336538 | 0.4198618157 | 1 | 0.6570118779 | 0.443588582 | 1 | 0.6886112847 | 0.3818636207 | 1 | 0.9018891966 | 0.3240655299 | 1 | 0.0499650068 | 0.0473095913 | 1 | 0.2479173704 | 0.9685735372 | 1 | 47 | |
foster | 0.7465044995 | 0.3508669856 | 1 | 0.773103805 | 0.3367696392 | 1 | 0.6325869164 | 0.2954457302 | 1 | 0.8817743309 | 0.2404183762 | 1 | -0.1217087019 | 0.0950015678 | 1 | 0.703763343 | 0.9750253776 | 1 | 41 | |
miscarriage | 0.8884354166 | 0.421394254 | 1 | 0.7556856853 | 0.5477102339 | 1 | 0.5590103565 | 0.3605741874 | 1 | 0.9751035961 | 0.3529099813 | 1 | 0.0740780398 | -0.3329101436 | 1 | 0.7378988184 | 0.8443074291 | 1 | 4 | |
crown | 0.6207828393 | 0.4035506816 | 1 | 0.7187474563 | 0.4240352334 | 1 | 0.6030396893 | 0.4476800163 | 1 | 0.8844711623 | 0.3195076021 | 1 | -0.4435968721 | 0.0371711907 | 1 | 0.145157441 | 1.0488604159 | 1 | 21 | |
hostage | 0.7840031615 | 0.4161566008 | 1 | 0.6419284349 | 0.5221082282 | 1 | 0.7872439617 | 0.5377474863 | 1 | 0.9641821735 | 0.4539120688 | 1 | 0.0508854567 | -0.087248911 | 1 | 0.1026521413 | 1.0222955489 | 1 | 96 | |
indirect | 0.6942572467 | 0.5819132907 | 1 | 0.7826039726 | 0.4191288023 | 1 | 0.6761360368 | 0.4222953895 | 1 | 0.8368880744 | 0.2592615113 | 1 | 0.4214690797 | -0.0147503207 | 1 | 0.3946887384 | 1.3687379165 | 1 | 98 | |
tournament | 0.7366888958 | 0.345386592 | 1 | 0.6492572179 | 0.3428548495 | 1 | 0.6790057525 | 0.4215840652 | 1 | 0.9640168364 | 0.3414856246 | 1 | 0.2930309868 | -0.1289129359 | 1 | 0.0141977695 | 1.1057382545 | 1 | 56 | |
volunteer | 0.7126378252 | 0.4637218376 | 1 | 0.9294599686 | 0.488740964 | 1 | 0.7581744622 | 0.4583112162 | 1 | 0.9088031595 | 0.324275931 | 1 | -0.1050934195 | 0.0707912755 | 1 | 0.4774553633 | 1.0017573987 | 1 | 42 | |
injection | 0.6966895465 | 0.3957900428 | 1 | 0.6885062432 | 0.5602157629 | 1 | 0.9065447776 | 0.3557822358 | 1 | 0.938157852 | 0.348882326 | 1 | 0.1631954155 | -0.1253260582 | 1 | 0.2517264499 | 1.1616808715 | 1 | 5 | |
biography | 0.7063777355 | 0.3970458444 | 1 | 0.8177197538 | 0.6950215408 | 2 | 0.6258783986 | 0.4482028947 | 1 | 0.9478353972 | 0.4813142605 | 1 | 0.1954877509 | -0.2550454216 | 1 | 0.4918269295 | 0.9557351268 | 1 | 93 | |
outfit | 0.792558197 | 0.413147073 | 1 | 0.8183814093 | 0.6946529611 | 2 | 0.6538620666 | 0.4873259747 | 1 | 0.1013018416 | 0.3197601129 | 2 | 0.1194796589 | 0.2241322541 | 1 | -0.0004451299 | 0.8314638813 | 1 | 59 | |
artificial | 0.8175999709 | 0.6952875779 | 2 | 0.817432808 | 0.6953325526 | 2 | 0.8641408376 | 0.3848128495 | 1 | 0.1673416731 | 0.2273101886 | 2 | 0.0231595489 | 0.0388338696 | 1 | 0.4514633593 | 0.2155396002 | 2 | 96 | |
economics | 0.8186623001 | 0.6945489134 | 2 | 0.8178016809 | 0.6950653555 | 2 | 0.8121687814 | 0.5232210251 | 1 | 0.3523912743 | 0.293687275 | 2 | 0.1930904176 | 0.341609737 | 2 | 0.4252502222 | 0.7513325607 | 2 | 14 | |
horizon | 0.8177479023 | 0.6954732261 | 2 | 0.8185594346 | 0.6946915561 | 2 | 0.7435951402 | 0.6006089851 | 1 | 0.3371218305 | 0.2271571143 | 2 | 0.4116786478 | 0.5615555919 | 2 | 1.375472486 | -0.2959825143 | 2 | 92 | |
structure | 0.8177299853 | 0.6952360483 | 2 | 0.8177812784 | 0.694997763 | 2 | 0.7169247846 | 0.4830154533 | 1 | 0.3228249308 | 0.2955613211 | 2 | 0.4466218221 | 0.545916714 | 2 | 0.5383150231 | 0.4550584008 | 2 | 76 | |
staff | 0.817980958 | 0.6952802541 | 2 | 0.8178292339 | 0.6949424316 | 2 | 0.8177138545 | 0.695112789 | 2 | -0.1119658554 | 0.2826619821 | 2 | -0.0041666376 | 1.20364064 | 2 | 0.4626338659 | -0.0609823702 | 2 | 4 | |
drift | 0.8180657301 | 0.6949553118 | 2 | 0.8175973307 | 0.6952742417 | 2 | 0.8178878217 | 0.6951814996 | 2 | 0.2548570005 | 0.3283660674 | 2 | 0.2016877896 | 0.5951676728 | 2 | 0.181662364 | 0.2747232101 | 2 | 56 | |
excavate | 0.8177693004 | 0.6950126957 | 2 | 0.8182953995 | 0.6945555114 | 2 | 0.8189353438 | 0.6946046377 | 2 | 0.1451543852 | 0.3498152042 | 2 | -0.217718256 | 0.7805405536 | 2 | 0.1880729611 | 0.6154379715 | 2 | 55 | |
socialist | 0.8180741538 | 0.6949239491 | 2 | 0.8177723624 | 0.6953985663 | 2 | 0.818494526 | 0.6945473806 | 2 | 0.1132080207 | 0.2898043825 | 2 | 0.167222602 | 0.9605223804 | 2 | 0.8355203275 | 0.3441367826 | 2 | 77 | |
compact | 0.817906788 | 0.6950585602 | 2 | 0.8176584751 | 0.6951923443 | 2 | 0.8174126919 | 0.6956021157 | 2 | 0.3909234413 | 0.1935349169 | 2 | 0.1244824753 | 0.8520148632 | 2 | 0.5580656796 | 0.5159077714 | 2 | 64 | |
scene | 0.8179104011 | 0.6953077845 | 2 | 0.8179125354 | 0.6952752114 | 2 | 0.8178657403 | 0.6954092345 | 2 | 0.2849339561 | 0.2875928857 | 2 | -0.2104431994 | 0.916255747 | 2 | 0.1994641636 | 0.5107587294 | 2 | 94 | |
can | 0.8178905929 | 0.6949152104 | 2 | 0.8174893927 | 0.6955555026 | 2 | 0.8179455116 | 0.695357398 | 2 | 0.1491333117 | 0.4628694338 | 2 | 0.5206240106 | 0.1480348552 | 2 | 0.3506476546 | 0.5765219718 | 2 | 13 | |
human body | 0.8179581684 | 0.694854789 | 2 | 0.8180193148 | 0.6950207004 | 2 | 0.8176500423 | 0.6953468304 | 2 | 0.4460037504 | 0.2865907673 | 2 | 0.0958436632 | 0.9052732186 | 2 | 0.4553103344 | 0.5882009975 | 2 | 62 | |
senior | 0.8175665845 | 0.695058441 | 2 | 0.8182430159 | 0.694305546 | 2 | 0.8172682536 | 0.6955360397 | 2 | 0.2441174303 | 0.3573857814 | 2 | 0.1140964133 | 0.2871677261 | 2 | 0.7491498507 | -0.0699487421 | 2 | 45 | |
hiccup | 0.8177793984 | 0.6951387235 | 2 | 0.8180129448 | 0.6952317221 | 2 | 0.8178550158 | 0.6953024016 | 2 | 0.0125487287 | 0.3886496278 | 2 | -0.0180819187 | 0.6853383587 | 2 | 0.558505857 | 0.2434732958 | 2 | 91 | |
displace | 0.818006265 | 0.6949373905 | 2 | 0.8179851552 | 0.6950188491 | 2 | 0.8178789033 | 0.6953457811 | 2 | -0.0328234925 | 0.3787926174 | 2 | 0.4824906949 | 0.1631975273 | 2 | 0.1149347701 | 0.3626000479 | 2 | 42 | |
van | 0.8945754295 | 0.0997068328 | 3 | 0.8177468283 | 0.6950393331 | 2 | 0.8174194932 | 0.6955116909 | 2 | 0.1624586481 | 0.294819397 | 2 | 0.1041808055 | 0.3503933982 | 2 | 0.5416308678 | 0.1571866723 | 2 | 11 | |
painter | 0.8945275043 | 0.0996140052 | 3 | 0.8182874182 | 0.6951040948 | 2 | 0.8178173067 | 0.6951518178 | 2 | 0.415995535 | 0.3824849342 | 2 | 0.2089599649 | 0.7218994028 | 2 | -0.4034764377 | 0.8779979752 | 2 | 69 | |
school | 0.8946535354 | 0.0995440151 | 3 | 0.8177973931 | 0.6956137656 | 2 | 0.8176111501 | 0.6950014662 | 2 | 0.0213361543 | 0.2509757106 | 2 | 0.3627523127 | 0.5772773776 | 2 | 0.3064543122 | 0.4544837219 | 2 | 55 | |
justice | 0.894455761 | 0.0996332418 | 3 | 0.8175027935 | 0.6952749306 | 2 | 0.8178191344 | 0.6952411504 | 2 | 0.1048460791 | 0.3464336157 | 2 | 0.6305264312 | 0.2730923665 | 2 | 0.891812068 | 0.2720717724 | 2 | 96 | |
main | 0.8945991433 | 0.099688283 | 3 | 0.8180271894 | 0.6953262867 | 2 | 0.8945530335 | 0.0995974774 | 3 | 0.3821997202 | 0.2832323938 | 2 | -0.0609982988 | 0.7593435178 | 2 | 0.4287643831 | 0.3396455632 | 2 | 1 | |
log | 0.8943353236 | 0.0994249209 | 3 | 0.817796776 | 0.6947643772 | 2 | 0.8942037274 | 0.0994543298 | 3 | 0.2577541019 | 0.3458683381 | 2 | 0.5689635431 | 0.333316245 | 2 | 0.4083866606 | -0.0120268218 | 2 | 71 | |
crack | 0.8944685552 | 0.0994172277 | 3 | 0.8181000056 | 0.6948833554 | 2 | 0.8943641667 | 0.0996109986 | 3 | 0.5687319607 | 0.3487841616 | 3 | -0.0472330846 | 0.4178027224 | 2 | 0.0482515359 | 0.6557059807 | 2 | 34 | |
ice cream | 0.8944086185 | 0.0996398801 | 3 | 0.894676795 | 0.0996696281 | 3 | 0.8946031582 | 0.0995015127 | 3 | 0.5226857264 | 0.3792565508 | 3 | 0.3654668718 | -0.153108328 | 2 | -0.0116668405 | 0.5785042138 | 2 | 56 | |
receipt | 0.8944456212 | 0.0994877088 | 3 | 0.8943223213 | 0.0993310916 | 3 | 0.8944952934 | 0.0993901513 | 3 | 0.5817134762 | 0.3014470766 | 3 | 0.0499981994 | 1.0744872883 | 2 | 0.5576995987 | 0.2826660305 | 2 | 82 | |
corn | 0.8942291136 | 0.0995187737 | 3 | 0.8947063601 | 0.0997813306 | 3 | 0.8943656692 | 0.0992803884 | 3 | 0.4944273281 | 0.3968407 | 3 | 0.1650594208 | 0.2009958766 | 2 | 0.5125469119 | 0.6299116263 | 2 | 42 | |
brand | 0.8942246504 | 0.0996295883 | 3 | 0.8945284865 | 0.0996169039 | 3 | 0.8943120869 | 0.099415037 | 3 | 0.7331382791 | 0.3860110171 | 3 | -0.1188164369 | 0.4320082509 | 3 | 0.8485130285 | 0.5381172564 | 3 | 45 | |
monkey | 0.8942370239 | 0.0995865665 | 3 | 0.8946952617 | 0.0998249851 | 3 | 0.8945130144 | 0.0996888387 | 3 | 0.4244223861 | 0.2149103945 | 3 | 0.3202734247 | 0.1468356949 | 3 | 1.0738478967 | 0.6949621093 | 3 | 70 | |
piece | 0.8943727547 | 0.0995921013 | 3 | 0.8943252031 | 0.0996097925 | 3 | 0.8942424291 | 0.0994847481 | 3 | 0.5267817935 | 0.3031246461 | 3 | 0.0024550373 | 0.4754777553 | 3 | 0.9667244918 | 0.6110726834 | 3 | 29 | |
blind | 0.8942670931 | 0.0993245956 | 3 | 0.8942246893 | 0.0994574104 | 3 | 0.8945717334 | 0.0995749574 | 3 | 0.6725311132 | 0.4355006801 | 3 | -0.2789344111 | 0.6983747841 | 3 | 0.7843921442 | 0.6533991986 | 3 | 66 | |
calm | 0.8944237311 | 0.0994712233 | 3 | 0.8947411524 | 0.0997992917 | 3 | 0.8941638829 | 0.0994136441 | 3 | 0.5269124863 | 0.2906522685 | 3 | 0.5553004849 | 0.0645103302 | 3 | 0.7484412095 | 0.6532317795 | 3 | 3 | |
guideline | 0.8943668882 | 0.0993612084 | 3 | 0.8942375537 | 0.0993923022 | 3 | 0.8943106475 | 0.0994123274 | 3 | 0.5219876033 | 0.3092735631 | 3 | -0.0315735519 | 0.3990881883 | 3 | 0.8817185734 | 0.5046068968 | 3 | 19 | |
prosper | 0.8942533328 | 0.0994033088 | 3 | 0.8941204578 | 0.0993328179 | 3 | 0.8941898478 | 0.0991848081 | 3 | 0.5057944923 | 0.5469357365 | 3 | 0.0044715494 | 0.1925695385 | 3 | 0.9798014546 | 0.7024127288 | 3 | 96 | |
dance | 0.8942840798 | 0.0993210897 | 3 | 0.8943520751 | 0.0993856434 | 3 | 0.8943112523 | 0.0995075569 | 3 | 0.4781580816 | 0.2457425592 | 3 | 0.0023667737 | 0.1558318371 | 3 | 0.7509378566 | 0.7651228469 | 3 | 6 | |
sandwich | 0.8945328426 | 0.0993492689 | 3 | 0.8939145648 | 0.0992398266 | 3 | 0.8943532426 | 0.0993543497 | 3 | 0.3780134701 | 0.2722999018 | 3 | 0.3954877698 | 0.0626257104 | 3 | 0.9219031704 | 0.8455449189 | 3 | 15 | |
boot | 0.8943513106 | 0.0995087529 | 3 | 0.894510029 | 0.0995938498 | 3 | 0.8942821233 | 0.0992512541 | 3 | 0.5790336865 | 0.3718376144 | 3 | 0.0828610046 | 0.1477000467 | 3 | 0.7108287477 | 0.7947851194 | 3 | 5 | |
expect | 0.821974638 | 0.5714908781 | 4 | 0.8945268992 | 0.0996329111 | 3 | 0.8945104219 | 0.0993114695 | 3 | 0.4945285513 | 0.30880361 | 3 | 0.5416377412 | 0.1528975594 | 3 | 0.7696069623 | 0.7269836626 | 3 | 66 | |
assignment | 0.746844646 | 0.3896465254 | 4 | 0.8943070718 | 0.099354419 | 3 | 0.8940736547 | 0.0992875406 | 3 | 0.5138656846 | 0.2939782067 | 3 | 0.1786559655 | 0.4446067467 | 3 | 0.9079528 | 0.6900140508 | 3 | 69 | |
property | 0.6916415779 | 0.3444522237 | 4 | 0.8943172856 | 0.0995515849 | 3 | 0.9876579095 | 0.3518719181 | 4 | 0.6898515675 | 0.4558249284 | 3 | 1.1258015259 | 0.8021355766 | 4 | 1.0082783259 | 0.7719556548 | 3 | 75 | |
large | 0.5125599711 | 0.5014202033 | 4 | 0.894137431 | 0.099283178 | 3 | 1.0926342647 | 0.581794183 | 4 | 0.3511998359 | 0.2355136496 | 3 | 1.0473238971 | 0.5154837197 | 4 | 0.9328867566 | 0.5895539124 | 3 | 73 | |
officer | 0.7772713681 | 0.2132695583 | 4 | 0.8944065661 | 0.0994607382 | 3 | 0.8222661806 | 0.2366435134 | 4 | 0.6377748725 | 0.287951971 | 3 | 1.4832441354 | 0.211202234 | 4 | 1.0053728388 | 0.8575049077 | 3 | 84 | |
paradox | 0.5213100774 | 0.4392307433 | 4 | 0.9449674426 | 0.4447176642 | 4 | 0.9451276189 | 0.4652203386 | 4 | 0.4938271885 | 0.2841727838 | 3 | 0.759618579 | 0.3878017157 | 4 | 0.9029183252 | 0.599674096 | 3 | 53 | |
brag | 0.7445341407 | 0.5868991859 | 4 | 1.1541144415 | 0.3983199107 | 4 | 0.7596086929 | 0.3260707382 | 4 | 0.3624467503 | 0.3883628598 | 3 | 1.3874054647 | 0.6560368111 | 4 | 0.900092558 | 0.6339479488 | 3 | 45 | |
mention | 0.6441462739 | 0.2339733094 | 4 | 0.9592460419 | 0.1663614686 | 4 | 0.8473606748 | 0.3409931278 | 4 | 0.6676385715 | 0.3993339388 | 3 | 1.2984074683 | 0.3777280924 | 4 | 0.7115005523 | 0.7316333535 | 3 | 69 | |
partnership | 1.0350105412 | 0.4042686798 | 4 | 0.8096378515 | 0.5665255336 | 4 | 0.7070113361 | 0.2932979849 | 4 | 0.7100245734 | 0.477201975 | 3 | 0.7129667454 | 0.1827956757 | 4 | 0.9584060438 | 0.5804444493 | 3 | 38 | |
arrange | 0.8654438026 | 0.4952412228 | 4 | 0.5732538775 | 0.3429560172 | 4 | 0.604033082 | 0.4319796859 | 4 | 0.7128252292 | 0.4102695519 | 3 | 1.370901109 | 0.7069699054 | 4 | 0.853487719 | 0.6212191873 | 3 | 94 | |
oral | 0.7886117658 | 0.4130375152 | 4 | 0.5414037876 | 0.3016226826 | 4 | 0.6507156876 | 0.2573593851 | 4 | 0.4149132363 | 0.4127833792 | 4 | 1.4729136673 | 0.7626576251 | 4 | 0.9216062451 | 0.6099230832 | 3 | 1 | |
pole | 0.8452326554 | 0.4778612293 | 4 | 0.6278083654 | 0.342686274 | 4 | 0.8105501749 | 0.2412502875 | 4 | 0.3661753415 | 0.4888566752 | 4 | 1.1962148709 | 0.628428555 | 4 | 0.7829149826 | 0.8713290939 | 3 | 80 | |
hide | 1.0620185826 | 0.2795543547 | 4 | 0.928196059 | 0.3259693986 | 4 | 0.5287827305 | 0.5154031077 | 4 | 0.213571605 | 0.5411113922 | 4 | 0.9808105503 | 0.6702126405 | 4 | 0.9599646645 | 0.3306312362 | 3 | 65 | |
lily | 0.8381847519 | 0.4955696348 | 4 | 1.0437487017 | 0.2799870854 | 4 | 1.1333547141 | 0.6810110924 | 4 | 0.494281655 | 0.4160937468 | 4 | 0.9415149762 | 0.4770127918 | 4 | 0.8561189135 | 0.7589743381 | 3 | 29 | |
column | 0.5205245864 | 0.4252467083 | 4 | 0.9413473885 | 0.3136632207 | 4 | 0.5337984302 | 0.3303899424 | 4 | -0.1196454652 | 0.6217982765 | 4 | 0.5103045264 | 0.2947029311 | 4 | 0.6738832933 | 0.5906637668 | 4 | 13 | |
flower | 0.9006256353 | 0.6755805061 | 4 | 0.5591268142 | 0.2707320825 | 4 | 0.8673898337 | 0.5485690909 | 4 | 0.1274068686 | 0.4643626019 | 4 | 1.133739063 | 0.5934382322 | 4 | 0.9192336424 | 0.5680931497 | 4 | 73 | |
sit | 0.8371277066 | 0.5066057702 | 4 | 1.0329393722 | 0.4584476623 | 4 | 0.6015378101 | 0.367870094 | 4 | 0.2955594972 | 0.3995071729 | 4 | 0.5881469971 | 0.5801224675 | 4 | 0.3016374858 | 0.1689864865 | 4 | 47 | |
menu | 0.5624135789 | 0.306788134 | 4 | 0.8739625276 | 0.3560648265 | 4 | 0.8659471178 | 0.1964691503 | 4 | 0.1863323802 | 0.5636438862 | 4 | 1.0683417401 | 0.3850880386 | 4 | 0.602123082 | 0.4592136946 | 4 | 44 | |
clash | 1.0799428434 | 0.4105959344 | 4 | 0.9620596622 | 0.4348988136 | 4 | 0.6434417816 | 0.3922248645 | 4 | 0.2873664918 | 0.446723256 | 4 | 0.9658485738 | 0.6202719324 | 4 | 0.2540535773 | 0.461950748 | 4 | 25 | |
nun | 0.9641661143 | 0.4377329001 | 4 | 0.8129069008 | 0.3928617512 | 4 | 0.8096515627 | 0.4525056923 | 4 | 0.1778180384 | 0.3912534416 | 4 | 0.8707016957 | 0.3270369677 | 5 | 0.5881678627 | 0.5186991872 | 4 | 94 | |
disk | 0.9095842941 | 0.3577401454 | 4 | 0.8483928379 | 0.612668146 | 4 | 0.9105070084 | 0.3820011997 | 4 | 0.4857545609 | 0.4853537235 | 4 | 0.866635902 | 0.1820680254 | 5 | 0.7994561146 | 0.1734793679 | 4 | 36 | |
bolt | 0.9617528154 | 0.4913029022 | 4 | 0.7199920241 | 0.6111388722 | 4 | 0.672232702 | 0.6282319391 | 4 | 0.5874155171 | 0.5863821572 | 4 | 0.6705186583 | 0.1998197055 | 5 | 0.4121281656 | 0.3189905527 | 4 | 9 | |
dialogue | 0.9880255756 | 0.4299558623 | 4 | 1.0500683044 | 0.4024321823 | 4 | 0.6191660931 | 0.2779399294 | 4 | 0.2169696084 | 0.4465449626 | 4 | 0.9580742756 | 0.1475863151 | 5 | 0.4483519305 | 0.4085615085 | 4 | 65 | |
smart | 0.8845666991 | 0.3979442639 | 4 | 0.8301064422 | 0.2787898691 | 4 | 0.5783383953 | 0.1430951145 | 5 | 0.1783229473 | 0.5165200901 | 4 | 0.9613078417 | 0.1046156637 | 5 | 0.6668624151 | 0.3947323144 | 4 | 73 | |
courtship | 0.5782665973 | 0.1431428241 | 5 | 0.6727758232 | 0.6027278479 | 4 | 0.578311524 | 0.143147273 | 5 | -0.1534231892 | 0.656169765 | 4 | 0.8702154608 | 0.0608811985 | 5 | 0.1036472003 | 0.608894774 | 4 | 70 | |
reduce | 0.5783746143 | 0.1432190197 | 5 | 1.1462601307 | 0.2216941205 | 4 | 0.578347155 | 0.1432031239 | 5 | 0.0551854686 | 0.4932399303 | 4 | 0.7315869451 | 0.2988243486 | 5 | 0.3428073597 | 0.5234535339 | 4 | 22 | |
systematic | 0.5783451107 | 0.1431451496 | 5 | 0.3696430815 | 0.3089276036 | 4 | 0.5783881105 | 0.1430722388 | 5 | 0.750353977 | 0.5193954743 | 5 | 0.9463083675 | 0.215307738 | 5 | 0.0102234833 | 0.2618294002 | 4 | 20 | |
sheep | 0.5783185422 | 0.1432539694 | 5 | 0.5783594444 | 0.1430966418 | 5 | 0.5783779619 | 0.1430084424 | 5 | 0.729535743 | 0.5979798747 | 5 | 0.8250908016 | 0.1955676567 | 5 | 0.6383676551 | 0.5177568169 | 4 | 86 | |
bus | 0.5783578184 | 0.1430534007 | 5 | 0.5783507874 | 0.1432313115 | 5 | 0.5783408676 | 0.1432394915 | 5 | 0.6393649611 | 0.5837067553 | 5 | 0.9903788152 | 0.0697507662 | 5 | 0.3223348482 | -0.0517474271 | 4 | 13 | |
dilute | 0.578274526 | 0.1431320456 | 5 | 0.5783642578 | 0.1430082006 | 5 | 0.5782274945 | 0.1430794732 | 5 | 0.7971643642 | 0.5584384025 | 5 | 0.8271795536 | 0.2041739079 | 5 | 0.330315087 | 0.6678561782 | 5 | 78 | |
disappoint | 0.5783119518 | 0.1431433031 | 5 | 0.5783242366 | 0.1430321217 | 5 | 0.5783101603 | 0.1432037829 | 5 | 0.7377590025 | 0.5796914979 | 5 | 0.6101690066 | 0.3719654653 | 5 | 0.5207980305 | 0.9001015165 | 5 | 56 | |
flush | 0.5783775747 | 0.1431234024 | 5 | 0.5783068461 | 0.1431686654 | 5 | 0.578271654 | 0.1430344941 | 5 | 0.7038978606 | 0.6143518388 | 5 | 0.7496289426 | 0.3616858851 | 5 | 0.3752024181 | 0.7728787568 | 5 | 53 | |
abundant | 0.578365271 | 0.1432155046 | 5 | 0.5783124814 | 0.1431789184 | 5 | 0.5783548558 | 0.1433083154 | 5 | 0.7317880424 | 0.5786303738 | 5 | 0.9240808563 | 0.2512116238 | 5 | 0.3739232258 | 0.7402649518 | 5 | 41 | |
deposit | 0.5783093613 | 0.1432095291 | 5 | 0.5782959817 | 0.1432749286 | 5 | 0.5783503744 | 0.1430691094 | 5 | 0.7691711875 | 0.5850778547 | 5 | 0.8531766055 | 0.2926834134 | 5 | 0.3842143671 | 0.6645611785 | 5 | 38 | |
index finger | 0.5782998599 | 0.1431287869 | 5 | 0.5783353677 | 0.143093894 | 5 | 0.5782963668 | 0.1431419131 | 5 | 0.732914611 | 0.6337799046 | 5 | 0.8430408154 | 0.189631393 | 5 | 0.4616900359 | 0.8282307773 | 5 | 65 | |
fist | 0.5782560486 | 0.143231248 | 5 | 0.5783393066 | 0.1431134476 | 5 | 0.5782851173 | 0.1430873853 | 5 | 0.8257778118 | 0.5433987229 | 5 | 0.8559166221 | 0.2889619623 | 5 | 0.3504162702 | 0.74196811 | 5 | 88 | |
friendly | 0.5783542953 | 0.1430098157 | 5 | 0.5783340873 | 0.1431806813 | 5 | 0.5783631652 | 0.1430258473 | 5 | 0.7096256337 | 0.5858738139 | 5 | 0.8227242425 | 0.0806892578 | 5 | 0.5039372435 | 0.7906846887 | 5 | 79 | |
face | 0.5783458725 | 0.1432257649 | 5 | 0.5783449737 | 0.1432996784 | 5 | 0.5783334704 | 0.1432376261 | 5 | 0.8048734055 | 0.5272048849 | 5 | 0.8769966076 | 0.1503109696 | 5 | 0.4035185094 | 0.8116859536 | 5 | 27 | |
accident | 0.578339289 | 0.1431512389 | 5 | 0.5783708121 | 0.1431134088 | 5 | 0.5782534717 | 0.1430675563 | 5 | 0.7313670722 | 0.5921147442 | 5 | 0.7168031872 | 0.2071271909 | 5 | 0.3152993914 | 0.7375881245 | 5 | 99 | |
reverse | 0.5783493316 | 0.1430938904 | 5 | 0.5784126884 | 0.1431097153 | 5 | 0.5783617578 | 0.1433030146 | 5 | 0.742852609 | 0.6185682012 | 5 | 0.5702276483 | 0.3772348351 | 5 | 0.4233477548 | 0.6407322693 | 5 | 73 | |
beef | 0.5783538073 | 0.1430833384 | 5 | 0.5782595053 | 0.1433623074 | 5 | 0.5783055499 | 0.1431911201 | 5 | 0.7080971961 | 0.5987621227 | 5 | 0.7293253391 | 0.2843775653 | 5 | 0.2495218406 | 0.5396081858 | 5 | 28 | |
development | 0.5783349684 | 0.1431971417 | 5 | 0.5783367948 | 0.1430289064 | 5 | 0.5783147861 | 0.1432109398 | 5 | 0.7430127662 | 0.5971246394 | 5 | 0.7642353916 | 0.0052972661 | 5 | 0.0530457021 | 0.5236876626 | 5 | 45 | |
mercy | 0.5783368238 | 0.1431320359 | 5 | 0.5783091078 | 0.143159597 | 5 | 0.5783837309 | 0.1430028696 | 5 | 0.8483563293 | 0.547584544 | 5 | 0.830814023 | 0.1313082046 | 5 | 0.3383895401 | 0.8062771445 | 5 | 5 | |
marsh | 0.5783356475 | 0.143152484 | 5 | 0.5783482939 | 0.1431017975 | 5 | 0.5782953224 | 0.1432140432 | 5 | 0.7503933226 | 0.5602111016 | 5 | 0.7880851718 | 0.2063789351 | 5 | 0.4394776306 | 0.6402781132 | 5 | 7 |
This file contains 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
<!DOCTYPE html> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Scatterplot matrix</title> | |
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
<style type="text/css"> | |
svg { | |
font: 10px sans-serif; | |
padding: 10px; | |
width: 1500px; | |
overflow: visible; | |
} | |
.axis, | |
.frame { | |
shape-rendering: crispEdges; | |
} | |
.axis line { | |
stroke: #ddd; | |
} | |
.axis path { | |
display: none; | |
} | |
.frame { | |
fill: none; | |
stroke: #aaa; | |
} | |
circle { | |
fill-opacity: .7; | |
} | |
circle.selected { | |
fill: #ccc !important; | |
} | |
.extent { | |
fill: #000; | |
fill-opacity: .125; | |
stroke: #fff; | |
} | |
.tooltip { | |
position: absolute; | |
width: 300px; | |
height: 100px; | |
font-size: 12px; | |
pointer-events: none; | |
} | |
#wrap{ | |
border: 1px solid white; | |
width: 600px; | |
} | |
div { | |
float: left; | |
margin-right: 10px; | |
} | |
</style> | |
</head> | |
<div class="container" id="wrap"> | |
<h2></h2> | |
<div> | |
<button type="button" class="btn btn-default" id="clear-select">Clear selection</button> | |
</div> | |
<div class="dropdown"><button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Select cluster<span class="caret"></span></button> | |
<ul class="dropdown-menu" id="cluster"> | |
<li><a class="cluster" href="#" value="1">cluster 1</a></li> | |
<li><a class="cluster" href="#" value="2">cluster 2</a></li> | |
<li><a class="cluster" href="#" value="3">cluster 3</a></li> | |
<li><a class="cluster" href="#" value="4">cluster 4</a></li> | |
<li><a class="cluster" href="#" value="5">cluster 5</a></li> | |
</ul> | |
</div> | |
<div> | |
Selection mode: | |
<form> | |
<label class="radio-inline" "active"><input type="radio" name="optradio" id="select-disab" checked="">disabled</label> | |
<label class="radio-inline"><input type="radio" name="optradio" id="brush-enab">brush</label> | |
<label class="radio-inline"><input type="radio" name="optradio" id="click-select">click</label> | |
</form> | |
</div> | |
</div> | |
<body> | |
<script> | |
var width = 2420, | |
size = 475, | |
padding = 19.5; | |
var x = d3.scale.linear() | |
.range([padding / 2, size - padding / 2]); | |
var y = d3.scale.linear() | |
.range([size - padding / 2, padding / 2]); | |
var xAxis = d3.svg.axis() | |
.scale(x) | |
.orient("bottom") | |
.ticks(5); | |
var yAxis = d3.svg.axis() | |
.scale(y) | |
.orient("left") | |
.ticks(5); | |
var color = d3.scale.category10(); | |
var getClustSize = d3.scale.sqrt(); | |
// add the tooltip area to the webpage | |
var tooltip = d3.select("body").append("div") | |
.attr("class", "tooltip") | |
.style("opacity", 0); | |
var brushCell; | |
var modselection = JSON.parse(localStorage.getItem("modselection")); | |
var selection = (localStorage.getItem("selection") == null) ? [] : JSON.parse(localStorage.getItem("selection")); | |
var dataset; | |
d3.tsv("data.tsv", function(error, data) { | |
dataset = data; | |
var domainBySolution = {}; | |
var solutions = ["solution3", "solution2", "solution1", "solution6", "solution5", "solution4"]; | |
// solutions.reverse(); | |
// Define the size of the matrix | |
n = 3; | |
solutions.forEach(function(solution) { | |
domainBySolution[solution+".x"] = d3.extent(data, function(d) { return +d[solution+".x"]; }); | |
domainBySolution[solution+".y"] = d3.extent(data, function(d) { return +d[solution+".y"]; }); | |
}); | |
console.log(domainBySolution); | |
xAxis.tickSize(size * n); | |
yAxis.tickSize(-size * n); | |
var brush = d3.svg.brush() | |
.x(x) | |
.y(y) | |
.on("brushstart", brushstart) | |
.on("brush", brushmove) | |
.on("brushend", brushend); | |
var svg = d3.select("body").append("svg") | |
.attr("width", size * n + padding) | |
.attr("height", size * n + padding) | |
.append("g") | |
.attr("transform", "translate(" + padding + "," + padding / 2 + ")"); | |
svg.selectAll(".x.axis") | |
.data(solutions) | |
.enter().append("g") | |
.attr("class", "x axis") | |
.attr("transform", function(d, i) { return "translate(" + (n - i - 1) * size + ",0)"; }) | |
.each(function(d) { x.domain(domainBySolution[d+".x"]); d3.select(this).call(xAxis); }); | |
svg.selectAll(".y.axis") | |
.data(solutions) | |
.enter().append("g") | |
.attr("class", "y axis") | |
.attr("transform", function(d, i) { return "translate(0," + i * size + ")"; }) | |
.each(function(d) { y.domain(domainBySolution[d+".y"]); d3.select(this).call(yAxis); }); | |
var cell = svg.selectAll(".cell") | |
.data(combine(solutions)) | |
.enter().append("g") | |
.attr("class", "cell") | |
.attr("transform", function(d) { return "translate(" + (n - +d.i - 1) * size + "," + +d.j * size + ")"; }) | |
.each(plot); | |
// Titles for all plots. | |
cell.append("text") | |
.attr("x", padding) | |
.attr("y", padding) | |
.attr("dy", ".71em") | |
.text(function(d) { if (d.x.substring(0, d.x.length-2) != "undefined") { return d.x.substring(0, d.x.length-2); }}); | |
// .on('click', function(d) {console.log(d.x.substring(0, d.x.length-2));}); | |
// .on('click', function(d) { | |
// localStorage.setItem("goToPlot", d.x.substring(0, d.x.length-2)); | |
// window.location = "level3.html"; | |
// }); | |
function clearBrush(){ | |
cell.selectAll('.brush').remove(); | |
} | |
var brushEnab = false; | |
d3.select("#brush-enab").on("change", function() { | |
brushEnab = this.checked; | |
clickSelect = false; | |
if (brushEnab) { | |
cell.append("g") | |
.attr("class", "brush") | |
.call(brush); | |
} else { | |
// location.reload(); | |
clearBrush(); | |
} | |
}); | |
d3.select("#select-disab").on("click", function() { | |
brushEnab = false; | |
clickSelect = false; | |
clearBrush(); | |
}); | |
var clickSelect = false; | |
d3.select("#click-select").on("change", function() { | |
clickSelect = this.checked; | |
brushEnab = false; | |
clearBrush(); | |
}); | |
d3.select("#clear-select").on("click", function() { | |
clearBrush(); | |
selection = [] | |
localStorage.setItem("selection", JSON.stringify(selection)); | |
svg.selectAll(".selected").classed("selected", false); | |
d3.selectAll('input').property('checked', false); | |
clickSelect = false; | |
}); | |
function hexToRgb(hex) { | |
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
return result ? "rgb("+parseInt(result[1], 16) + ", " + parseInt(result[2], 16) + ", " + parseInt(result[3], 16)+")" : null; | |
} | |
d3.selectAll(".cluster").on("click", function() { | |
cluster = this.getAttribute("value"); | |
svg.selectAll("circle").classed("selected", true); | |
svg.selectAll('circle[style = "fill: ' + hexToRgb(color(cluster)) + ';"]').classed("selected", false); | |
// svg.selectAll("circle").select("style").select("fill")classed("selected", function(d) { | |
// return (d[d3.keys(d).filter(function (d) { return d.endsWith("1.label"); })] == cluster); | |
// }); | |
}); | |
function plot(p) { | |
var cell = d3.select(this); | |
try { | |
x.domain(domainBySolution[p.x]); | |
y.domain(domainBySolution[p.y]); | |
cell.append("rect") | |
.attr("class", "frame") | |
.attr("x", padding / 2) | |
.attr("y", padding / 2) | |
.attr("width", size - padding) | |
.attr("height", size - padding); | |
cell.selectAll("circle") | |
.data(data) | |
.enter().append("circle") | |
.attr("cx", function(d) { return x(d[p.x]); }) | |
.attr("cy", function(d) { return y(d[p.y]); }) | |
// .attr("r", 5) | |
.attr("r", function(d) {return getClustSize(+d.freq/2);}) | |
.style("fill", function(d) { return color(d[p.label]); }) | |
.classed("selected", function(d) { | |
if (selection.length > 0) { | |
return !(selection.indexOf(d.id) > -1); | |
} | |
}) | |
.attr("pointer-events", "all") | |
.on("click", function(d) { | |
if (clickSelect) { | |
if (selection.indexOf(d.id) === -1) { | |
selection.push(d.id); | |
console.log("push " + d.id); | |
} else { | |
var index = selection.indexOf(d.id); | |
if (index > -1) { | |
selection.splice(index, 1); | |
} | |
console.log("splice " + d.id); | |
} | |
if (selection.length > 0) { | |
svg.selectAll("circle").classed("selected", function(d) { | |
return !(selection.indexOf(d.id) > -1); | |
}) | |
} | |
localStorage.setItem("selection", JSON.stringify(selection)); | |
} | |
}) | |
.on("mouseover", function(d) { | |
tooltip.transition() | |
.duration(200) | |
.style("opacity", .9); | |
tooltip.html("<b>"+d.id + "</b>") | |
.style("left", (d3.event.pageX + 10) + "px") | |
.style("top", (d3.event.pageY - 14) + "px"); | |
// svg.select(".dot").selectAll("circle").style("opacity", .2); | |
// d3.select(this).style("opacity", 1).classed("selected", false); | |
}); | |
// .on("mouseout", function(d) { | |
// if (selection.indexOf(d.id) > -1) { | |
// d3.selectAll('circle[id =' + d.id + ']') | |
// .tooltip.html("<b>"+d.id + "</b>") | |
// .style("left", (d3.event.pageX + 10) + "px") | |
// .style("top", (d3.event.pageY - 14) + "px"); | |
// } | |
// }) | |
} catch (e) { | |
console.log("combinations missing") | |
} | |
} | |
// Clear the previously-active brush, if any. | |
function brushstart(p) { | |
if (brushCell !== this) { | |
try { | |
d3.select(brushCell).call(brush.clear()); | |
x.domain(domainBySolution[p.x]); | |
y.domain(domainBySolution[p.y]); | |
brushCell = this; | |
} catch (e) { | |
console.log("combinations missing") | |
} | |
} | |
} | |
// Highlight the selected circles. | |
function brushmove(p) { | |
var e = brush.extent(); | |
// console.log(e); | |
svg.selectAll("circle").classed("selected", function(d) { | |
return e[0][0] > d[p.x] || d[p.x] > e[1][0] | |
|| e[0][1] > d[p.y] || d[p.y] > e[1][1]; | |
}); | |
} | |
// If the brush is empty, select all circles. | |
function brushend() { | |
if (brush.empty()) { | |
svg.selectAll(".selected").classed("selected", false); | |
} else { | |
selection = []; | |
svg.selectAll("circle").each(function(d) { | |
if (!(d3.select(this).classed("selected"))) { | |
if (selection.indexOf(d.id) === -1) { | |
selection.push(d.id); | |
} | |
} | |
}); | |
localStorage.setItem("selection", JSON.stringify(selection)); | |
} | |
} | |
function combine(s) { | |
var c = [], n = s.length, i, j, k = 0; | |
for (j = -1; ++j < n%4;) for (i = -1; ++i < 3;) if (k < n) c.push({x: s[k]+".x", i: i, y: s[k]+".y", j: j, label: s[k]+".label"}), ++k; | |
return c; | |
} | |
d3.select(self.frameElement).style("height", size * n + padding + 20 + "px"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment