Skip to content

Commit

Permalink
Added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVG02 committed Sep 15, 2024
1 parent 8d37338 commit 850c4b6
Show file tree
Hide file tree
Showing 44 changed files with 2,212 additions and 176 deletions.
Binary file added .RData
Binary file not shown.
512 changes: 512 additions & 0 deletions .Rhistory

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<style>body{background-color:white;}</style>
<script src="lib/htmlwidgets-1.6.4/htmlwidgets.js"></script><script src="lib/d3-3.5.5/d3.min.js"></script><link href="lib/d3tree-0.1/d3tree.css" rel="stylesheet">
<script src="lib/d3tree-binding-0.1/d3tree.js"></script><style>
body {
background-color: white;
margin: 0;
overflow: hidden;
}
.d3tree {
width: 100%;
height: 100vh;
}

.label {
font-family: Arial, sans-serif;
}

.d3tree .child .label {
font-size: 12px;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div id="htmlwidget-b2d93fc8e639766c476f" style="font-size: 15px;" class="d3tree html-widget"></div>
<script type="application/json" data-for="htmlwidget-b2d93fc8e639766c476f">{"x":{"data":{"name":"aa.candidates_0.01_IDs TreeMap","id":1,"size":null,"children":[{"name":"biosynthetic process","color":"#E29A7C","h":1,"id":2,"size":5.703377141653171,"stdErr":5.703377141653171,"vColor":"biosynthetic process","vColorValue":"biosynthetic process","vSize":5.703377141653171,"w":0.1028426448777735,"x0":0.8971573551222265,"y0":0,"children":[{"name":"cellular metabolic process","color":"#E29A7C","h":0.4238612382019463,"id":3,"size":2.41744049719379,"stdErr":2.41744049719379,"vColor":"biosynthetic process","vColorValue":"biosynthetic process","vSize":2.41744049719379,"w":0.1028426448777735,"x0":0.8971573551222265,"y0":0},{"name":"organonitrogen compound metabolic process","color":"#E29A7C","h":0.5761387617980537,"id":4,"size":3.28593664445938,"stdErr":3.28593664445938,"vColor":"biosynthetic process","vColorValue":"biosynthetic process","vSize":3.28593664445938,"w":0.1028426448777735,"x0":0.8971573551222265,"y0":0.4238612382019463}]},{"name":"cytoplasmic translation","color":"#00BCD2","h":1,"id":5,"size":49.75393969837487,"stdErr":49.75393969837487,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":49.75393969837487,"w":0.8971573551222265,"x0":0,"y0":0,"children":[{"name":"amino acid biosynthetic process","color":"#00BCD2","h":0.2074215259469138,"id":6,"size":2.38191452782087,"stdErr":2.38191452782087,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":2.38191452782087,"w":0.2070682412623165,"x0":0.69008911385991,"y0":0.2844800233234897},{"name":"aspartate family amino acid biosynthetic process","color":"#00BCD2","h":0.1548024581358387,"id":7,"size":3.50551398736917,"stdErr":3.50551398736917,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":3.50551398736917,"w":0.4083334877027292,"x0":0.4888238674194973,"y0":0.4919015492704035},{"name":"cytoplasmic translational initiation","color":"#00BCD2","h":0.2541440821374953,"id":8,"size":3.50551398736917,"stdErr":3.50551398736917,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":3.50551398736917,"w":0.2487212257862637,"x0":0,"y0":0.2377574671329081},{"name":"gene expression","color":"#00BCD2","h":0.2844800233234897,"id":9,"size":2.32638227343295,"stdErr":2.32638227343295,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":2.32638227343295,"w":0.1474587172146416,"x0":0.4727427929909854,"y0":0},{"name":"glutamate biosynthetic process","color":"#00BCD2","h":0.1377205073037138,"id":10,"size":2.11528067777038,"stdErr":2.11528067777038,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":2.11528067777038,"w":0.2769558449165996,"x0":0.620201510205627,"y0":0},{"name":"maturation of 5.8S rRNA","color":"#00BCD2","h":0.2377574671329081,"id":11,"size":3.27948665822154,"stdErr":3.27948665822154,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":3.27948665822154,"w":0.2487212257862637,"x0":0,"y0":0},{"name":"maturation of LSU-rRNA","color":"#00BCD2","h":0.3532959925937579,"id":12,"size":3.92288683119529,"stdErr":3.92288683119529,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":3.92288683119529,"w":0.2002203493500591,"x0":0.6969370057721674,"y0":0.6467040074062422},{"name":"organic acid biosynthetic process","color":"#00BCD2","h":0.2565269572985283,"id":13,"size":3.18699729321089,"stdErr":3.18699729321089,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":3.18699729321089,"w":0.2240215672047218,"x0":0.2487212257862637,"y0":0.2353745919718752},{"name":"peptide biosynthetic process","color":"#00BCD2","h":0.5080984507295966,"id":14,"size":13.7739698150359,"stdErr":13.7739698150359,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":13.7739698150359,"w":0.4888238674194973,"x0":0,"y0":0.4919015492704035},{"name":"ribosomal large subunit biogenesis","color":"#00BCD2","h":0.2353745919718752,"id":15,"size":2.92420802634019,"stdErr":2.92420802634019,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":2.92420802634019,"w":0.2240215672047218,"x0":0.2487212257862637,"y0":0},{"name":"RNA processing","color":"#00BCD2","h":0.2074215259469138,"id":16,"size":2.50014370185469,"stdErr":2.50014370185469,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":2.50014370185469,"w":0.2173463208689247,"x0":0.4727427929909854,"y0":0.2844800233234897},{"name":"rRNA metabolic process","color":"#00BCD2","h":0.3532959925937579,"id":17,"size":4.07752904483768,"stdErr":4.07752904483768,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":4.07752904483768,"w":0.2081131383526701,"x0":0.4888238674194973,"y0":0.6467040074062422},{"name":"sulfur amino acid metabolic process","color":"#00BCD2","h":0.1467595160197759,"id":18,"size":2.25411287391615,"stdErr":2.25411287391615,"vColor":"cytoplasmic translation","vColorValue":"cytoplasmic translation","vSize":2.25411287391615,"w":0.2769558449165996,"x0":0.620201510205627,"y0":0.1377205073037138}]}]},"meta":{"type":"categorical","vSize":"value","vColor":"representative","stdErr":"value","algorithm":"pivotSize","vpCoorX":[0.02812148481439815,0.9718785151856019],"vpCoorY":[0.01406074240719908,0.9359392575928009],"aspRatio":1.023732536147886,"range":null,"mapping":[null,null,null],"draw":true},"options":{"id":"id","celltext":"name","valueField":"size"}},"evals":[],"jsHooks":[]}</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<style>body{background-color:white;}</style>
<script src="lib/htmlwidgets-1.6.4/htmlwidgets.js"></script><script src="lib/d3-3.5.5/d3.min.js"></script><link href="lib/d3tree-0.1/d3tree.css" rel="stylesheet">
<script src="lib/d3tree-binding-0.1/d3tree.js"></script><style>
body {
background-color: white;
margin: 0;
overflow: hidden;
}
.d3tree {
width: 100%;
height: 100vh;
}

.label {
font-family: Arial, sans-serif;
}

.d3tree .child .label {
font-size: 12px;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div id="htmlwidget-ff38f1f60172a3ed569b" style="font-size: 15px;" class="d3tree html-widget"></div>
<script type="application/json" data-for="htmlwidget-ff38f1f60172a3ed569b">{"x":{"data":{"name":"aa.candidates_0.01_IDs TreeMap","id":1,"size":null,"children":[{"name":"cytosolic large ribosomal subunit","color":"#E29A7C","h":1,"id":2,"size":16.69506676232651,"stdErr":16.69506676232651,"vColor":"cytosolic large ribosomal subunit","vColorValue":"cytosolic large ribosomal subunit","vSize":16.69506676232651,"w":1,"x0":0,"y0":0,"children":[{"name":"cytoplasm","color":"#E29A7C","h":0.2807338529725669,"id":3,"size":2.42176179610105,"stdErr":2.42176179610105,"vColor":"cytosolic large ribosomal subunit","vColorValue":"cytosolic large ribosomal subunit","vSize":2.42176179610105,"w":0.5167119165258184,"x0":0.4832880834741816,"y0":0},{"name":"eukaryotic translation initiation factor 3 complex","color":"#E29A7C","h":0.3293206638360398,"id":4,"size":2.84089786073179,"stdErr":2.84089786073179,"vColor":"cytosolic large ribosomal subunit","vColorValue":"cytosolic large ribosomal subunit","vSize":2.84089786073179,"w":0.5167119165258184,"x0":0.4832880834741816,"y0":0.2807338529725669},{"name":"preribosome, large subunit precursor","color":"#E29A7C","h":0.5046917887181142,"id":5,"size":4.07211923262051,"stdErr":4.07211923262051,"vColor":"cytosolic large ribosomal subunit","vColorValue":"cytosolic large ribosomal subunit","vSize":4.07211923262051,"w":0.4832880834741816,"x0":0,"y0":0.4953082112818858},{"name":"ribonucleoprotein complex","color":"#E29A7C","h":0.3899454831913933,"id":6,"size":3.36388028645538,"stdErr":3.36388028645538,"vColor":"cytosolic large ribosomal subunit","vColorValue":"cytosolic large ribosomal subunit","vSize":3.36388028645538,"w":0.5167119165258184,"x0":0.4832880834741816,"y0":0.6100545168086067},{"name":"storage vacuole","color":"#E29A7C","h":0.4953082112818858,"id":7,"size":3.99640758641778,"stdErr":3.99640758641778,"vColor":"cytosolic large ribosomal subunit","vColorValue":"cytosolic large ribosomal subunit","vSize":3.99640758641778,"w":0.4832880834741816,"x0":0,"y0":0}]}]},"meta":{"type":"categorical","vSize":"value","vColor":"representative","stdErr":"value","algorithm":"pivotSize","vpCoorX":[0.02812148481439815,0.9718785151856019],"vpCoorY":[0.01406074240719908,0.9359392575928009],"aspRatio":1.023732536147886,"range":null,"mapping":[null,null,null],"draw":true},"options":{"id":"id","celltext":"name","valueField":"size"}},"evals":[],"jsHooks":[]}</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<style>body{background-color:white;}</style>
<script src="lib/htmlwidgets-1.6.4/htmlwidgets.js"></script><script src="lib/d3-3.5.5/d3.min.js"></script><link href="lib/d3tree-0.1/d3tree.css" rel="stylesheet">
<script src="lib/d3tree-binding-0.1/d3tree.js"></script><style>
body {
background-color: white;
margin: 0;
overflow: hidden;
}
.d3tree {
width: 100%;
height: 100vh;
}

.label {
font-family: Arial, sans-serif;
}

.d3tree .child .label {
font-size: 12px;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div id="htmlwidget-503da5e978dbf2d68dd5" style="font-size: 15px;" class="d3tree html-widget"></div>
<script type="application/json" data-for="htmlwidget-503da5e978dbf2d68dd5">{"x":{"data":{"name":"aa.candidates_0.01_IDs TreeMap","id":1,"size":null,"children":[{"name":"metal cluster binding","color":"#E29A7C","h":1,"id":2,"size":4.17961925054111,"stdErr":4.17961925054111,"vColor":"metal cluster binding","vColorValue":"metal cluster binding","vSize":4.17961925054111,"w":0.4743435927506424,"x0":0.5256564072493576,"y0":0,"children":[{"name":"4 iron, 4 sulfur cluster binding","color":"#E29A7C","h":0.4914370230335309,"id":3,"size":2.05401964189956,"stdErr":2.05401964189956,"vColor":"metal cluster binding","vColorValue":"metal cluster binding","vSize":2.05401964189956,"w":0.4743435927506424,"x0":0.5256564072493576,"y0":0},{"name":"heterocyclic compound binding","color":"#E29A7C","h":0.5085629769664691,"id":4,"size":2.12559960864155,"stdErr":2.12559960864155,"vColor":"metal cluster binding","vColorValue":"metal cluster binding","vSize":2.12559960864155,"w":0.4743435927506424,"x0":0.5256564072493576,"y0":0.4914370230335309}]},{"name":"rRNA binding","color":"#00BCD2","h":1,"id":5,"size":4.63175569879502,"stdErr":4.63175569879502,"vColor":"rRNA binding","vColorValue":"rRNA binding","vSize":4.63175569879502,"w":0.5256564072493576,"x0":0,"y0":0,"children":[{"name":"RNA binding","color":"#00BCD2","h":0.4589187657705129,"id":6,"size":2.12559960864155,"stdErr":2.12559960864155,"vColor":"rRNA binding","vColorValue":"rRNA binding","vSize":2.12559960864155,"w":0.5256564072493576,"x0":0,"y0":0},{"name":"translation initiation factor activity","color":"#00BCD2","h":0.5410812342294871,"id":7,"size":2.50615609015347,"stdErr":2.50615609015347,"vColor":"rRNA binding","vColorValue":"rRNA binding","vSize":2.50615609015347,"w":0.5256564072493576,"x0":0,"y0":0.4589187657705129}]}]},"meta":{"type":"categorical","vSize":"value","vColor":"representative","stdErr":"value","algorithm":"pivotSize","vpCoorX":[0.02812148481439815,0.9718785151856019],"vpCoorY":[0.01406074240719908,0.9359392575928009],"aspRatio":1.023732536147886,"range":null,"mapping":[null,null,null],"draw":true},"options":{"id":"id","celltext":"name","valueField":"size"}},"evals":[],"jsHooks":[]}</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Copyright (c) 2010-2015, Michael Bostock
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* The name Michael Bostock may not be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Data-Driven Documents

<a href="http://d3js.org"><img src="http://d3js.org/logo.svg" align="left" hspace="10" vspace="6"></a>

**D3.js** is a JavaScript library for manipulating documents based on data. **D3** helps you bring data to life using HTML, SVG, and CSS. **D3** emphasizes web standards and combines powerful visualization components with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers without tying yourself to a proprietary framework.

Want to learn more? [See the wiki.](https://github.com/mbostock/d3/wiki)

For examples, [see the gallery](https://github.com/mbostock/d3/wiki/Gallery) and [mbostock’s bl.ocks](http://bl.ocks.org/mbostock).

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.d3tree svg {
overflow: hidden;
}

.d3tree rect {
pointer-events: all;
cursor: pointer;
stroke: #EEEEEE;
}

.d3tree .label {
stroke: #000000;
fill: #000000;
stroke-width: 0;
margin: 2px;
overflow: hidden;
text-overflow: ellipsis;
}

.d3tree .parent .label {
font-size: 12px;
stroke: #FFFFFF;
fill: #FFFFFF;
}

.d3tree .child .label {
font-size: 11px;
}

.d3tree .cell {
font-size: 11px;
cursor: pointer
}
Loading

0 comments on commit 850c4b6

Please sign in to comment.