зеркало из https://github.com/microsoft/wpa.git
66 строки
1.9 KiB
R
66 строки
1.9 KiB
R
% 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,
|
|
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.}
|
|
|
|
\item{return}{Character vector to specify what to return.
|
|
Valid options include "plot" (default) and "table".
|
|
"plot" returns an overlapping area plot.
|
|
"table" returns a summary table.}
|
|
|
|
\item{values}{Character vector to specify whether to return percentages
|
|
or absolute values in "data" and "plot". Valid values are "percent" (default)
|
|
and "abs".}
|
|
|
|
\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
|
|
workpatterns_area(em_data, return = "plot", values = "percent")
|
|
|
|
## Return visualization of absolute values
|
|
workpatterns_area(em_data, return = "plot", values = "abs")
|
|
|
|
## Return a table
|
|
workpatterns_area(em_data, return = "table")
|
|
|
|
}
|
|
\seealso{
|
|
Other Work Patterns:
|
|
\code{\link{flex_index}()},
|
|
\code{\link{personas_hclust}()},
|
|
\code{\link{plot_flex_index}()},
|
|
\code{\link{workpatterns_classify_bw}()},
|
|
\code{\link{workpatterns_classify_pav}()},
|
|
\code{\link{workpatterns_classify}()},
|
|
\code{\link{workpatterns_hclust}()}
|
|
}
|
|
\concept{Work Patterns}
|