wpa/man/afterhours_fizz.Rd

56 строки
1.8 KiB
Plaintext
Исходник Обычный вид История

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/afterhours_fizz.R
\name{afterhours_fizz}
\alias{afterhours_fizz}
\title{Distribution of After-hours Collaboration Hours (Fizzy Drink plot)}
\usage{
afterhours_fizz(data, hrvar = "Organization", mingroup = 5, return = "plot")
}
\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.}
2021-02-05 22:38:38 +03:00
\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.}
}
2021-02-05 22:46:58 +03:00
\value{
A different output is returned depending on the value passed to the \code{return} argument:
\itemize{
\item \code{"plot"}: ggplot object. A jittered scatter plot for the metric.
\item \code{"table"}: data frame. A summary table for the metric.
}
}
\description{
Analyze weekly after-hours collaboration hours distribution, and returns
a 'fizzy' scatter plot by default.
Additional options available to return a table with distribution elements.
}
\details{
Uses the metric \code{After_hours_collaboration_hours}.
See \code{create_fizz()} for applying the same analysis to a different metric.
}
\examples{
2021-02-06 17:15:19 +03:00
# Return plot
2021-02-05 22:46:58 +03:00
afterhours_fizz(sq_data, hrvar = "LevelDesignation", return = "plot")
2021-02-06 17:15:19 +03:00
# Return summary table
afterhours_fizz(sq_data, hrvar = "Organization", return = "table")
}
\seealso{
Other After-Hours:
\code{\link{afterhours_dist}()},
\code{\link{afterhours_line}()},
\code{\link{afterhours_rank}()},
\code{\link{afterhours_summary}()},
\code{\link{afterhours_trend}()}
}
\concept{After-Hours}