View source: R/utils.example-function.R
utils.example | R Documentation |
This function create an input example for several function in divnn package.
utils.example()
output A list of inputs: 1) value, a data frame with rows for instances and columns for features; 2) outcome, a vector of binary integers with the same length as the instances; 3) similarity, a square matrix of numerics containing feature-feature similarity measures; 4) mapping, a matrix of numerics with rows for features and three columns for three dimensions where the features are mapped onto; and 5) ontology, a data frame with rows for ontologies and four columns for source, target, similarity, and relation. In addition, a result of hierarchical clustering is also included for visualization purpose.
## Create input example
input=utils.example()
## Show output and visualize the ontology by hierarchical clustering
input
plot(input$hierarchy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.