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,
|
2021-02-03 14:28:15 +03:00
|
|
|
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-02-03 14:28:15 +03:00
|
|
|
\item{signals}{Character vector to specify which collaboration metrics to use:
|
|
|
|
\itemize{
|
|
|
|
\item "email" (default) for emails only
|
|
|
|
\item "IM" for Teams messages only
|
|
|
|
\item "unscheduled_calls" for Unscheduled Calls only
|
|
|
|
\item "meetings" for Meetings only
|
|
|
|
\item or a combination of signals, such as \code{c("email", "IM")}
|
|
|
|
}}
|
|
|
|
|
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{
|
2021-01-15 20:54:56 +03:00
|
|
|
## Return visualization of percentage distribution
|
2020-10-27 00:21:24 +03:00
|
|
|
workpatterns_area(em_data, return = "plot", values = "percent")
|
|
|
|
|
2021-01-15 20:54:56 +03:00
|
|
|
## Return visualization of absolute values
|
2020-10-27 00:21:24 +03:00
|
|
|
workpatterns_area(em_data, return = "plot", values = "abs")
|
|
|
|
|
2021-01-15 20:54:56 +03:00
|
|
|
## Return a table
|
2020-10-27 00:21:24 +03:00
|
|
|
workpatterns_area(em_data, return = "table")
|
|
|
|
|
|
|
|
}
|
|
|
|
\seealso{
|
|
|
|
Other Work Patterns:
|
2021-01-27 19:16:08 +03:00
|
|
|
\code{\link{flex_index}()},
|
2020-10-27 00:21:24 +03:00
|
|
|
\code{\link{personas_hclust}()},
|
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}()}
|
|
|
|
}
|
|
|
|
\concept{Work Patterns}
|