mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 04:27:30 +02:00
This commit is contained in:
parent
912fff7474
commit
efc3f8acc3
23 changed files with 1467 additions and 644 deletions
|
|
@ -1,5 +1,5 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/data_plots.R
|
||||
% Please edit documentation in R/data_plots.R, R/plot_sankey.R
|
||||
\name{data-plots}
|
||||
\alias{data-plots}
|
||||
\alias{plot_ridge}
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
\alias{plot_scatter}
|
||||
\alias{sankey_ready}
|
||||
\alias{plot_sankey}
|
||||
\title{Title}
|
||||
\title{Plot nice ridge plot}
|
||||
\usage{
|
||||
plot_ridge(data, x, y, z = NULL, ...)
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ plot_violin(data, x, y, z = NULL)
|
|||
|
||||
plot_scatter(data, x, y, z = NULL)
|
||||
|
||||
sankey_ready(data, x, y, z = NULL, numbers = "count")
|
||||
sankey_ready(data, x, y, numbers = "count", ...)
|
||||
|
||||
plot_sankey(data, x, y, z = NULL, color.group = "x", colors = NULL)
|
||||
}
|
||||
|
|
@ -54,7 +54,7 @@ data.frame
|
|||
ggplot2 object
|
||||
}
|
||||
\description{
|
||||
Title
|
||||
Plot nice ridge plot
|
||||
|
||||
Wrapper to create plot based on provided type
|
||||
|
||||
|
|
@ -81,6 +81,12 @@ mtcars |> plot_scatter(x = "mpg", y = "wt")
|
|||
ds <- data.frame(g = sample(LETTERS[1:2], 100, TRUE), first = REDCapCAST::as_factor(sample(letters[1:4], 100, TRUE)), last = sample(c(letters[1:4], NA), 100, TRUE, prob = c(rep(.23, 4), .08)))
|
||||
ds |> sankey_ready("first", "last")
|
||||
ds |> sankey_ready("first", "last", numbers = "percentage")
|
||||
data.frame(
|
||||
g = sample(LETTERS[1:2], 100, TRUE),
|
||||
first = REDCapCAST::as_factor(sample(letters[1:4], 100, TRUE)),
|
||||
last = sample(c(TRUE, FALSE, FALSE), 100, TRUE)
|
||||
) |>
|
||||
sankey_ready("first", "last")
|
||||
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("first", "last")
|
||||
ds |> plot_sankey("first", "last", color.group = "y")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue