Description Details Author(s) Examples
A user-friendly tool for visualizing categorical or group movement.
The DESCRIPTION file:
This package was not yet installed at build time.
Index: This package was not yet installed at build time.
Users should ensure all classFields (columns) are explicitly defined in the same dataset.
colorCount(), FlowSummaries(), GateSummaries(), and makeFlow() can all operate with the same two basic inputs: data and classFields. Graphical parameters can be defined with additional makeFlow() arguments.
Alex J. Krebs
Maintainer: Alex J. Krebs <Krebs.AlexJ@gmail.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Data:
## carData <- mtcars
## carData$car <- "All Cars"
## carData$speedclass <- ifelse(carData$qsec < 15, "Fast",
## ifelse(carData$qsec < 18, "Mid-Speed","Slow"))
## carData$speedclass <- factor(x = carData$speedclass, levels = c("Slow","Mid-Speed","Fast"))
##
## Create Diagram:
## makeFlow(data = carData, classFields = c("car","cyl","speedclass"),
## gateWidth = 20, minVerticalBtwnGates = .15, distanceBtwnGates = 70,
## fieldLabels = c("", "Cylinders","Speed"), gateBorder = "black")
## Generate underlying tables using GateSummaries() and FlowSummaries()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.