Skip to content

Commit

Permalink
removed animation package
Browse files Browse the repository at this point in the history
  • Loading branch information
pridiltal committed Jul 23, 2019
1 parent 0e471ba commit f1a9963
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Depends: R (>= 3.4.0)
Imports: FNN,
ggplot2,
mclust,
tourr,
colorspace,
animation,
pcaPP,
stats,
ks,
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@ export(use_KNN)
import(ggplot2)
import(stats)
importFrom(FNN,knn.dist)
importFrom(animation,saveGIF)
importFrom(colorspace,rainbow_hcl)
importFrom(nabor,knn)
importFrom(tourr,animate_xy)
5 changes: 0 additions & 5 deletions R/display_HDoutliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
#' @param out A list containing output values produced by \code{\link[stray]{find_HDoutliers}}
#' @param alpha Alpha level of the points
#' @importFrom colorspace rainbow_hcl
#' @importFrom animation saveGIF
#' @import ggplot2
#' @importFrom tourr animate_xy
#' @export
#' @examples
#' data <- c(rnorm(100), 7, 7.5, rnorm(100, 20), 45)
Expand Down Expand Up @@ -46,8 +44,5 @@ display_HDoutliers <- function(data, out, alpha = 1) {
xlab("Variable 1") +
ylab("Variable 2")
out_display
} else {
col <- ifelse(1:n %in% out$outliers, "red", "black")
tourr::animate_xy(data[, -(d + 1)], col = col, pch = 20)
}
}
4 changes: 2 additions & 2 deletions R/find_HDoutliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' set.seed(1234)
#' data <- c(rnorm(1000, mean = -6), 0, rnorm(1000, mean = 6))
#' outliers <- find_HDoutliers(data, knnsearchtype = "FNN_auto")
#' display_HDoutliers(data, outliers)
#' #display_HDoutliers(data, outliers)
#'
#'
#' set.seed(1234)
Expand All @@ -32,7 +32,7 @@
#' out <- tibble::as.tibble(matrix(5 * runif(2 * nout, min = -5, max = 5), ncol = 2, byrow = TRUE))
#' data <- rbind(out, typical_data)
#' outliers <- find_HDoutliers(data, knnsearchtype = "FNN_auto")
#' display_HDoutliers(data, outliers)
#' #display_HDoutliers(data, outliers)
find_HDoutliers <- function(data, alpha = 0.01, k = 10,
knnsearchtype = c("FNN_auto", "FNN_brute", "nabor_brute"),
normalize = "unitize") {
Expand Down
4 changes: 2 additions & 2 deletions man/find_HDoutliers.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f1a9963

Please sign in to comment.