2020-10-29 18:22:07 +03:00
% 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{
2020-10-30 15:34:03 +03:00
\item{data}{A Standard Person Query dataset in the form of a data frame.}
2020-10-29 18:22:07 +03:00
\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.}
2020-10-29 18:22:07 +03:00
}
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.
}
}
2020-10-29 18:22:07 +03:00
\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}.
2020-10-30 15:34:03 +03:00
See \code{create_fizz()} for applying the same analysis to a different metric.
2020-10-29 18:22:07 +03:00
}
\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
2020-10-29 18:22:07 +03:00
afterhours_fizz(sq_data, hrvar = "Organization", return = "table")
}
\seealso{
2020-10-30 15:34:03 +03:00
Other After-Hours:
\code{\link{afterhours_dist}()},
\code{\link{afterhours_line}()},
\code{\link{afterhours_rank}()},
\code{\link{afterhours_summary}()},
\code{\link{afterhours_trend}()}
2020-10-29 18:22:07 +03:00
}
2020-10-30 15:34:03 +03:00
\concept{After-Hours}