General function for exporting graphs to foreign file formats, however at present only the GML format is implemented.
The graph to export
A connection or a string giving the file name to write the graph to.
Character string giving the file format.
GML is general textual format for graphs.
The vertex and edge attributes are written to the file if they are numeric or strings. Currently only the graphics struct is supported, and only for vertices;
graphics.x indicates an
x attribute in the
A NULL, invisibly
1 2 3 4 5 6 7 8 9 10 11
# Not run ## Load two-parameters sample data included in package #data_file_path = paste(installed.packages()["spade","LibPath"],"spade","extdata","SimulatedRawData.fcs",sep=.Platform$file.sep) ## Run basic SPADE analyses, clustering on two parameters. #output_dir <- tempdir() #SPADE.driver(data_file_path, out_dir=output_dir, cluster_cols=c("marker1","marker2")) ## Read and write minimum spanning tree graph #mst_graph <- igraph:::read.graph(paste(output_dir,"mst.gml",sep=.Platform$file.sep),format="gml") #SPADE.write.graph(mst_graph, file = paste(output_dir,"new_mst.gml",sep=.Platform$file.sep), format = c("gml"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.