mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 09:59:39 +02:00
...
This commit is contained in:
parent
bc8aa7b583
commit
96c397e827
1 changed files with 3 additions and 2 deletions
|
@ -754,6 +754,7 @@ default_theme <- function() {
|
||||||
#'
|
#'
|
||||||
#' @param color.group
|
#' @param color.group
|
||||||
#' @param colors
|
#' @param colors
|
||||||
|
#' @param ... passed to sankey_ready()
|
||||||
#'
|
#'
|
||||||
#' @returns ggplot2 object
|
#' @returns ggplot2 object
|
||||||
#' @export
|
#' @export
|
||||||
|
@ -762,8 +763,8 @@ default_theme <- function() {
|
||||||
#' ds <- data.frame(g = sample(LETTERS[1:2], 100, TRUE), first = REDCapCAST::as_factor(sample(letters[1:4], 100, TRUE)), last = REDCapCAST::as_factor(sample(letters[1:4], 100, TRUE)))
|
#' ds <- data.frame(g = sample(LETTERS[1:2], 100, TRUE), first = REDCapCAST::as_factor(sample(letters[1:4], 100, TRUE)), last = REDCapCAST::as_factor(sample(letters[1:4], 100, TRUE)))
|
||||||
#' ds |> plot_sankey_single("first", "last")
|
#' ds |> plot_sankey_single("first", "last")
|
||||||
#' ds |> plot_sankey_single("first", "last", color.group = "y")
|
#' ds |> plot_sankey_single("first", "last", color.group = "y")
|
||||||
plot_sankey_single <- function(data,x,y, color.group = "x", colors = NULL){
|
plot_sankey_single <- function(data,x,y, color.group = "x", colors = NULL,...){
|
||||||
data <- data |> sankey_ready(x = x, y = y)
|
data <- data |> sankey_ready(x = x, y = y,...)
|
||||||
# browser()
|
# browser()
|
||||||
library(ggalluvial)
|
library(ggalluvial)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue