Xinxin Yang's avatar
Xinxin Yang committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/capri_sankey.R
\name{plot_sankey}
\alias{plot_sankey}
\title{function draws sankey diagram and saves html pages for sankey}
\usage{
plot_sankey(data, p_baseline, png)
Xinxin Yang's avatar
Xinxin Yang committed
}
\arguments{
\item{data}{a data frame object has two lists, which contains the links between the nodes and the nodes, the nodes has node id and properties of the nodes.links should have include the Source and Target for each link. An optional Value variable can be included to specify how close the nodes are to one another.
If no ID is specified then the nodes must be in the same order as the Source variable column in the Links data frame. Currently only grouping variable is allowed.}
Xinxin Yang's avatar
Xinxin Yang committed

\item{p_baseline}{boolean.}

\item{png}{boolean. if TRUE, the sankey chart will be saved.}
}
\value{
sankey diagram.
}
\description{
function draws sankey diagram and saves html pages for sankey
}