wpa/man/one2one_dist.Rd

63 строки
1.8 KiB
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/one2one_dist.R
\name{one2one_dist}
\alias{one2one_dist}
\title{Distribution of Manager 1:1 Time as a 100\% stacked bar}
\usage{
one2one_dist(
data,
hrvar = "Organization",
mingroup = 5,
return = "plot",
cut = c(5, 15, 30)
)
}
\arguments{
\item{data}{A Standard Person Query dataset in the form of a data frame.}
\item{hrvar}{HR Variable by which to split metrics. Accepts a character vector, defaults to "Organization" but accepts any character vector, e.g. "LevelDesignation"}
\item{mingroup}{Numeric value setting the privacy threshold / minimum group size, defaults to 5.}
\item{return}{String specifying what to return. This must be one of the following strings:
\itemize{
\item \code{"plot"}
\item \code{"table"}
}
See \code{Value} for more information.}
\item{cut}{A numeric vector of length three to specify the breaks for the distribution,
e.g. c(10, 15, 20)}
}
\value{
A different output is returned depending on the value passed to the \code{return} argument:
\itemize{
\item \code{"plot"}: ggplot object. A stacked bar plot for the metric.
\item \code{"table"}: data frame. A summary table for the metric.
}
}
\description{
Analyze Manager 1:1 Time distribution.
Returns a stacked bar plot of different buckets of 1:1 time.
Additional options available to return a table with distribution elements.
}
\examples{
# Return plot
workloads_dist(sq_data, hrvar = "Organization", return = "plot")
# Return summary table
workloads_dist(sq_data, hrvar = "Organization", return = "table")
}
\seealso{
Other Managerial Relations:
\code{\link{mgrcoatt_dist}()},
\code{\link{mgrrel_matrix}()},
\code{\link{one2one_fizz}()},
\code{\link{one2one_line}()},
\code{\link{one2one_rank}()},
\code{\link{one2one_sum}()},
\code{\link{one2one_trend}()}
}
\concept{Managerial Relations}