зеркало из https://github.com/microsoft/wpa.git
docs: update examples and labels
This commit is contained in:
Родитель
8dca7139cd
Коммит
beb7a65248
|
@ -54,9 +54,9 @@
|
||||||
#' create_inc(
|
#' create_inc(
|
||||||
#' data = sq_data,
|
#' data = sq_data,
|
||||||
#' metric = "Collaboration_hours",
|
#' metric = "Collaboration_hours",
|
||||||
#' hrvar = c("Organization", "LevelDesignation"),
|
#' hrvar = c("LevelDesignation", "Organization"),
|
||||||
#' threshold = 20,
|
#' threshold = 20,
|
||||||
#' position = "above"
|
#' position = "below"
|
||||||
#' )
|
#' )
|
||||||
#'
|
#'
|
||||||
#' @export
|
#' @export
|
||||||
|
@ -158,7 +158,8 @@ create_inc_bar <- function(
|
||||||
return = return,
|
return = return,
|
||||||
plot_title = title_text,
|
plot_title = title_text,
|
||||||
plot_subtitle = subtitle_text,
|
plot_subtitle = subtitle_text,
|
||||||
legend_lab = paste(us_to_space(metric),
|
legend_lab = paste("% with",
|
||||||
|
tolower(us_to_space(metric)),
|
||||||
position,
|
position,
|
||||||
threshold),
|
threshold),
|
||||||
percent = TRUE
|
percent = TRUE
|
||||||
|
|
|
@ -83,9 +83,9 @@ create_inc(
|
||||||
create_inc(
|
create_inc(
|
||||||
data = sq_data,
|
data = sq_data,
|
||||||
metric = "Collaboration_hours",
|
metric = "Collaboration_hours",
|
||||||
hrvar = c("Organization", "LevelDesignation"),
|
hrvar = c("LevelDesignation", "Organization"),
|
||||||
threshold = 20,
|
threshold = 20,
|
||||||
position = "above"
|
position = "below"
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче