Description Usage Arguments Value Author(s) See Also Examples
hiveplot_rjs
creates an interactive hive plot.
1 2 |
links |
an edge list table stored in a data frame with three possible columns (source node id, target node id and link value). |
nodes |
node attributes stored in a data frame with rownames as node id. |
group |
column name of |
size |
column name of |
color |
column name of |
cex |
number indicating the amount by which plotting text and symbols should be scaled relative to the default. |
plot |
open resulting graph in your browser. |
jupyter |
embed the graph as an iframe into a Jupyter Notebook. |
dir |
a "character" string representing the directory where the graph will be saved. |
The function creates a folder in your computer with an HTML document named index.html which contains the graph. This file can be directly opened with your browser.
David Barrios and Carlos Prieto. Bioinformatics Service of Nucleus, University of Salamanca. See https://bioinfo.usal.es/
The ‘RJSplot’ Website: https://rjsplot.usal.es
dendrogram_rjs
, densityplot_rjs
, genomemap_rjs
, heatmap_rjs
, manhattan_rjs
, network_rjs
, scatterplot_rjs
, symheatmap_rjs
, wordcloud_rjs
, boxplot_rjs
, bubbles_rjs
, hiveplot_rjs
, piechart_rjs
, barplot_rjs
, tables_rjs
, surface3d_rjs
, scatter3d_rjs
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Create an interactive hive plot in a temporal directory of your local machine
## Live examples on https://rjsplot.usal.es
if(interactive()){
# Prepare data
x <- 1-cor(t(mtcars))
source <- rep(rownames(x),nrow(x))
target <- rep(rownames(x),rep(ncol(x),nrow(x)))
links <- data.frame(source=source,target=target,value=as.vector(x))
# Generate the hive plot
hiveplot_rjs(links, mtcars, group = "cyl", size = "wt", color = "carb")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.