Package sankey. R topics documented: October 22, 2017

Similar documents
Package spark. July 21, 2017

Package sessioninfo. June 21, 2017

Package fastdummies. January 8, 2018

Package simplegraph. December 10, 2015

Package zip. R topics documented: March 11, Title Cross-Platform 'zip' Compression Version 2.0.1

Package cli. November 5, 2017

Package datasets.load

Package canvasxpress

Package kirby21.base

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package filelock. R topics documented: February 7, 2018

Package rcmdcheck. R topics documented: November 10, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package crossword.r. January 19, 2018

Package clipr. June 23, 2018

Package validara. October 19, 2017

Package geogrid. August 19, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package callr. August 29, 2016

Package gifti. February 1, 2018

Package goodpractice

Package messaging. May 27, 2018

Package ECctmc. May 1, 2018

Package Mondrian. R topics documented: March 4, Type Package

Package io. January 15, 2018

Package available. November 17, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package barcoder. October 26, 2018

Package raker. October 10, 2017

Package repec. August 31, 2018

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package rhub. November 1, 2017

Package datapasta. January 24, 2018

Package gtrendsr. October 19, 2017

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package jstree. October 24, 2017

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package vip. June 15, 2018

Package projector. February 27, 2018

Package farver. November 20, 2018

Package multigraph. R topics documented: January 24, 2017

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package docxtools. July 6, 2018

Package librarian. R topics documented:

Package WordR. September 7, 2017

Package tidyselect. October 11, 2018

Package pkgbuild. October 16, 2018

Package multigraph. R topics documented: November 1, 2017

Package rgho. R topics documented: January 18, 2017

Package gtrendsr. August 4, 2018

Package basictrendline

Package profvis. R topics documented:

Package TVsMiss. April 5, 2018

Package tidyimpute. March 5, 2018

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package readobj. November 2, 2017

Package kdtools. April 26, 2018

Package desplot. R topics documented: April 3, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package mdftracks. February 6, 2017

Package gcite. R topics documented: February 2, Type Package Title Google Citation Parser Version Date Author John Muschelli

Package meme. November 2, 2017

Package editdata. October 7, 2017

Package d3plus. September 25, 2017

Package ConvergenceClubs

Package cli. March 19, 2019

Package remotes. December 21, 2017

Package balance. October 12, 2018

Package comparedf. February 11, 2019

Package areaplot. October 18, 2017

Package slickr. March 6, 2018

Package vinereg. August 10, 2018

Package gridgraphics

Package githubinstall

Package rtext. January 23, 2019

Package elmnnrcpp. July 21, 2018

Package gameofthrones

Package osrm. November 13, 2017

Package crochet. January 8, 2018

Package deductive. June 2, 2017

Package sfc. August 29, 2016

Package lumberjack. R topics documented: July 20, 2018

Package condusco. November 8, 2017

Package rpst. June 6, 2017

Package d3r. January 29, 2019

Package SEMrushR. November 3, 2018

Package harrypotter. September 3, 2018

Package dkanr. July 12, 2018

Package robotstxt. November 12, 2017

Package coga. May 8, 2018

Package meme. December 6, 2017

Package CatEncoders. March 8, 2017

Package PCADSC. April 19, 2017

Package phrasemachine

Package dbx. July 5, 2018

Package hypercube. December 15, 2017

Package stapler. November 27, 2017

Package QCAtools. January 3, 2017

Transcription:

Package sankey October 22, 2017 Title Illustrate the Flow of Information or Material Version 1.0.2 Author Gábor Csárdi, January Weiner Maintainer Gábor Csárdi <csardi.gabor@gmail.com> Description Plots that illustrate the flow of information or material. License GPL (>= 2) LazyData true URL https://github.com/gaborcsardi/sankey#readme BugReports https://github.com/gaborcsardi/sankey/issues Suggests covr, mockery, testthat Imports simplegraph, utils, graphics, grdevices RoxygenNote 6.0.1 Encoding UTF-8 NeedsCompilation no Repository CRAN Date/Publication 2017-10-22 16:45:58 UTC R topics documented: make_sankey........................................ 2 sankey............................................ 4 Index 5 1

2 make_sankey make_sankey Create an object that describes a sankey plot Description Usage Create an object that describes a sankey plot make_sankey(nodes = NULL, edges, y = c("optimal", "simple"), break_edges = FALSE, gravity = c("center", "top", "bottom")) Arguments nodes edges y break_edges gravity A data frame of nodes on the plot, and possibly their visual style. The first column must be the ids of the nodes. If this argument is NULL, then the ids of the nodes are determined from edges. A data frame of the edges. The first two columns must be node ids, and they define the edges. The rest of the columns contain the visual style of the edges. How to calculate vertical coordinates of nodes, if they are not given in the input. optimal tries to minimize edge crossings, simple simply packs nodes in the order they are given, from bottom to top. Whether to plot each edge as two segments, or a single one. Sometimes two segment plots look better. Whether to push the nodes to the top, to the bottom or to the center, within a column. Details The node and edges data frames may contain columns that specify how the plot is created. All parameters have reasonable default values. Current list of graphical parameters for nodes: col Node color. size Node size. x Horizontal coordinates of the center of the node. y Vertical coordinates of the center of the node. shape Shape of the node. Possible values: rectangle, point, invisible. lty Lite type, see par. srt How to rotate the label, see par. textcol Label color. label Label text. Defaults to node name. adjx Horizontal adjustment of the label. See adj in the par manual.

make_sankey 3 Value adjy Vertical adjustment of the label. See adj in the par manual. boxw Width of the node boxes. cex Label size multiplication factor. top Vertical coordinate of the top of the node. center Vertical coordinate of the center of the node. bottom Vertical coordinate of the bottom of the node. pos Position of the text label, see par. textx Horizontal position of the text label. texty Vertical position of the text label. Current list of graphical parameters for edges: colorstyle Whether the to use a solid color (col), or gradient to plot the edges. The color of a gradient edges is between the colors of the nodes. curvestyle Edge style, sin for sinusoid curves, line for straight lines. col Edge color, for edges with solid colors. weight Edge weight. Determines the width of the edges. A sankey object that can be plotted via the sankey function.x Examples ## Function calls in the pkgsnap package: edges <- read.table(stringsasfactors = FALSE, textconnection( " get_description parse_deps % % drop_internal get_description pkg_from_filename parse_deps str_trim cran_file get_pkg_type cran_file r_minor_version download_urls split_pkg_names_versions download_urls cran_file dir_exists download_urls filename_from_url try_download drop_missing_deps install_order split_pkg_names_versions data_frame ")) pkgsnap_sankey <- make_sankey(edges = edges) sankey(pkgsnap_sankey)

4 sankey ## Some customization nodes <- data.frame( stringsasfactors = FALSE, id = c("snap", sort(unique(c(edges[,1], edges[,2])))) ) nodes$col <- ifelse(nodes$id %in% c("snap", ""), "orange", "#2ca25f") edges$colorstyle <- "gradient" sankey(make_sankey(nodes, edges)) sankey Sankey Diagrams Description Usage Sankey plots illustrate the flow of information or material. Draw a sankey plot ## S3 method for class 'sankey' plot(x,...) sankey(x, mar = c(0, 5, 0, 5) + 0.2,...) Arguments x Value The plot, created via make_sankey.... Additional arguments, ignored currently. mar Nothing. Margin of the plot, see mar in the par manual.

Index make_sankey, 2, 4 plot.sankey (sankey), 4 sankey, 3, 4 sankey-package (sankey), 4 5