зеркало из https://github.com/microsoft/wpa.git
83 строки
2.2 KiB
R
83 строки
2.2 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/collaboration_dist.R, R/create_dist.R
|
|
\name{collaboration_dist}
|
|
\alias{collaboration_dist}
|
|
\alias{collab_dist}
|
|
\alias{collaboration_distribution}
|
|
\title{Distribution of Collaboration Hours as a 100\% stacked bar}
|
|
\usage{
|
|
collaboration_dist(
|
|
data,
|
|
hrvar = "Organization",
|
|
mingroup = 5,
|
|
return = "plot",
|
|
cut = c(15, 20, 25)
|
|
)
|
|
|
|
collab_dist(
|
|
data,
|
|
hrvar = "Organization",
|
|
mingroup = 5,
|
|
return = "plot",
|
|
cut = c(15, 20, 25)
|
|
)
|
|
|
|
collaboration_distribution(
|
|
data,
|
|
hrvar = "Organization",
|
|
mingroup = 5,
|
|
return = "plot",
|
|
cut = c(15, 20, 25)
|
|
)
|
|
}
|
|
\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 the distribution of Collaboration Hours.
|
|
Returns a stacked bar plot by default.
|
|
Additional options available to return a table with distribution elements.
|
|
}
|
|
\details{
|
|
Uses the metric \code{Collaboration_hours}.
|
|
}
|
|
\examples{
|
|
# Return plot
|
|
collaboration_dist(sq_data, hrvar = "Organization")
|
|
|
|
# Return summary table
|
|
collaboration_dist(sq_data, hrvar = "Organization", return = "table")
|
|
}
|
|
\seealso{
|
|
Other Collaboration:
|
|
\code{\link{collaboration_area}()},
|
|
\code{\link{collaboration_fizz}()},
|
|
\code{\link{collaboration_line}()},
|
|
\code{\link{collaboration_rank}()},
|
|
\code{\link{collaboration_sum}()},
|
|
\code{\link{collaboration_trend}()}
|
|
}
|
|
\concept{Collaboration}
|