зеркало из https://github.com/microsoft/wpa.git
chore: pass R CMD checks
This commit is contained in:
Родитель
203c953610
Коммит
9a4a5d82f1
|
@ -12,6 +12,8 @@
|
|||
^\.github$
|
||||
^man/figures/wpa cheatsheet_20201116.pdf$
|
||||
^man/figures/wpa cheatsheet_20201116.png$
|
||||
^man/figures/wpa cheatsheet.pdf$
|
||||
^man/figures/wpa cheatsheet.png$
|
||||
^vignettes/best-practices.Rmd$
|
||||
^vignettes/text-mining-capabilities.Rmd$
|
||||
^vignettes/IV-report.Rmd$
|
||||
|
|
|
@ -161,6 +161,7 @@ importFrom(data.table,"%like%")
|
|||
importFrom(data.table,":=")
|
||||
importFrom(dplyr,`%>%`)
|
||||
importFrom(dplyr,mutate_if)
|
||||
importFrom(grDevices,rainbow)
|
||||
importFrom(htmltools,HTML)
|
||||
importFrom(igraph,graph_from_data_frame)
|
||||
importFrom(magrittr,"%>%")
|
||||
|
|
|
@ -184,6 +184,9 @@ utils::globalVariables(
|
|||
"value_rescaled",
|
||||
"values",
|
||||
"cleaned_data",
|
||||
"zscore"
|
||||
"zscore",
|
||||
"StrongTieType",
|
||||
"TieOrigin_PersonId",
|
||||
"TieDestination_PersonId"
|
||||
)
|
||||
)
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
#' Generate a vector of `n` contiguous colours, as a red-yellow-green palette.
|
||||
#'
|
||||
#' @param n the number of colors (≥ 1) to be in the palette.
|
||||
#' @param alpha an alpha-transparency level in the range [0,1] (0 means transparent and 1 means opaque)
|
||||
#' @param alpha an alpha-transparency level in the range of 0 to 1
|
||||
#' (0 means transparent and 1 means opaque)
|
||||
#' @param rev logical indicating whether the ordering of the colors should be reversed.
|
||||
#'
|
||||
#' @examples
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#' @import ggplot2
|
||||
#' @import dplyr
|
||||
#' @import network
|
||||
#' @importFrom grDevices rainbow
|
||||
#'
|
||||
#' @export
|
||||
network_p2p <- function(data,
|
||||
|
@ -40,7 +41,7 @@ network_p2p <- function(data,
|
|||
bg_fill = "#000000",
|
||||
font_col = "#FFFFFF",
|
||||
legend_pos = "bottom",
|
||||
palette = rainbow,
|
||||
palette = "rainbow",
|
||||
...){
|
||||
|
||||
data <-
|
||||
|
|
|
@ -9,7 +9,8 @@ heat_colours(n, alpha, rev = FALSE)
|
|||
\arguments{
|
||||
\item{n}{the number of colors (≥ 1) to be in the palette.}
|
||||
|
||||
\item{alpha}{an alpha-transparency level in the range \link{0,1} (0 means transparent and 1 means opaque)}
|
||||
\item{alpha}{an alpha-transparency level in the range of 0 to 1
|
||||
(0 means transparent and 1 means opaque)}
|
||||
|
||||
\item{rev}{logical indicating whether the ordering of the colors should be reversed.}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ network_p2p(
|
|||
bg_fill = "#000000",
|
||||
font_col = "#FFFFFF",
|
||||
legend_pos = "bottom",
|
||||
palette = rainbow,
|
||||
palette = "rainbow",
|
||||
...
|
||||
)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче