mirror of
https://github.com/agdamsbo/prioritized.grouping.git
synced 2025-09-12 10:39:39 +02:00
Some checks are pending
pkgdown.yaml / pkgdown (push) Waiting to run
42 lines
1.1 KiB
R
42 lines
1.1 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/prioritized_grouping.R
|
|
\name{grouping_plot}
|
|
\alias{grouping_plot}
|
|
\title{Assessment performance overview}
|
|
\usage{
|
|
grouping_plot(
|
|
data,
|
|
columns = NULL,
|
|
overall = FALSE,
|
|
viridis.option = "D",
|
|
viridis.direction = -1
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{data}{A "prioritized_groups_list" class list from
|
|
'prioritized_grouping()'}
|
|
|
|
\item{columns}{number of columns in plot}
|
|
|
|
\item{overall}{logical to only print overall groups mean priority/cost}
|
|
|
|
\item{viridis.option}{option value passed on to 'viridisLite::viridis'.
|
|
Default="D".}
|
|
|
|
\item{viridis.direction}{direction value passed on to 'viridisLite::viridis'.
|
|
Default=-1.}
|
|
}
|
|
\value{
|
|
ggplot2 list object
|
|
}
|
|
\description{
|
|
The function plots costs of grouping for each subject in every group.
|
|
Performance measures printed are fill: fraction of filling relative to the
|
|
capacity specified; mean: mean priority/cost in group; n: number of subjects
|
|
in the group.
|
|
}
|
|
\examples{
|
|
#read.csv(here::here("data/prioritized_sample.csv")) |>
|
|
# prioritized_grouping(cap_classes = sample(4:12, 17, TRUE)) |>
|
|
# grouping_plot()
|
|
}
|