wpa/man/workpatterns_area.Rd

81 строка
2.4 KiB
Plaintext
Исходник Обычный вид История

2020-10-27 00:21:24 +03:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workpatterns_area.R
\name{workpatterns_area}
\alias{workpatterns_area}
\title{Create an area plot of emails and IMs by hour of the day}
\usage{
workpatterns_area(
data,
hrvar = "Organization",
mingroup = 5,
signals = c("email", "IM"),
2020-10-27 00:21:24 +03:00
return = "plot",
values = "percent",
start_hour = "0900",
end_hour = "1700"
)
}
\arguments{
\item{data}{A data frame containing data from the Hourly Collaboration query.}
\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-03-02 03:13:50 +03:00
\item{signals}{Character vector to specify which collaboration metrics to
use:
\itemize{
2021-03-02 03:13:50 +03:00
\item a combination of signals, such as \code{c("email", "IM")} (default)
\item \code{"email"} for emails only
\item \code{"IM"} for Teams messages only
\item \code{"unscheduled_calls"} for Unscheduled Calls only
\item \code{"meetings"} for Meetings only
}}
2021-02-03 20:56:41 +03:00
\item{return}{Character vector to specify what to return. Valid options include:
\itemize{
\item "plot": returns an overlapping area plot (default)
\item "table": returns a summary table
}}
2020-10-27 00:21:24 +03:00
\item{values}{Character vector to specify whether to return percentages
2021-02-03 20:56:41 +03:00
or absolute values in "data" and "plot". Valid values are:
\itemize{
\item "percent": percentage of signals divided by total signals (default)
\item "abs": absolute count of signals
}}
2020-10-27 00:21:24 +03:00
\item{start_hour}{A character vector specifying starting hours,
e.g. "0900"}
\item{end_hour}{A character vector specifying starting hours,
e.g. "1700"}
}
\description{
Uses the Hourly Collaboration query to produce an area plot of
Emails sent and IMs sent attended by hour of the day.
}
\examples{
# Return visualization of percentage distribution
2020-10-27 00:21:24 +03:00
workpatterns_area(em_data, return = "plot", values = "percent")
# Return visualization of absolute values
2020-10-27 00:21:24 +03:00
workpatterns_area(em_data, return = "plot", values = "abs")
2021-02-06 17:15:19 +03:00
# Return summary table
2020-10-27 00:21:24 +03:00
workpatterns_area(em_data, return = "table")
}
\seealso{
2021-03-05 01:19:07 +03:00
Other Working Patterns:
2021-01-27 19:16:08 +03:00
\code{\link{flex_index}()},
\code{\link{identify_shifts_wp}()},
2021-01-27 19:16:08 +03:00
\code{\link{plot_flex_index}()},
\code{\link{workpatterns_classify_bw}()},
\code{\link{workpatterns_classify_pav}()},
\code{\link{workpatterns_classify}()},
2020-10-27 00:21:24 +03:00
\code{\link{workpatterns_hclust}()}
}
2021-03-05 01:19:07 +03:00
\concept{Working Patterns}