2020-11-11 01:02:22 +03:00
|
|
|
# --------------------------------------------------------------------------------------------
|
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.
|
|
|
|
# --------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#' @title Email Hours Time Trend
|
2020-10-27 00:21:24 +03:00
|
|
|
#'
|
2020-11-11 01:02:22 +03:00
|
|
|
#' @description Provides a week by week view of email time.
|
2020-10-27 00:21:24 +03:00
|
|
|
#' By default returns a week by week heatmap, highlighting the points in time with most activity.
|
|
|
|
#' Additional options available to return a summary table.
|
|
|
|
#'
|
2020-11-19 16:59:07 +03:00
|
|
|
#' @details
|
|
|
|
#' Uses the metric `Email_hours`.
|
2020-10-27 00:21:24 +03:00
|
|
|
#'
|
2020-11-19 16:59:07 +03:00
|
|
|
#' @inheritParams create_trend
|
2021-03-04 21:33:28 +03:00
|
|
|
#' @inherit create_trend return
|
2020-10-27 00:21:24 +03:00
|
|
|
#'
|
2021-03-04 21:33:28 +03:00
|
|
|
#' @family Visualization
|
2020-10-27 00:21:24 +03:00
|
|
|
#' @family Emails
|
|
|
|
#'
|
|
|
|
#'
|
|
|
|
#' @export
|
|
|
|
|
|
|
|
email_trend <- function(data,
|
|
|
|
hrvar = "Organization",
|
|
|
|
mingroup = 5,
|
|
|
|
return = "plot"){
|
|
|
|
|
2020-11-19 16:59:07 +03:00
|
|
|
create_trend(data,
|
|
|
|
metric = "Email_hours",
|
|
|
|
hrvar = hrvar,
|
|
|
|
mingroup = mingroup,
|
|
|
|
return = return)
|
2020-10-27 00:21:24 +03:00
|
|
|
|
|
|
|
}
|