-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from william-hutchison/upgrade-gating
Upgrade gating
- Loading branch information
Showing
46 changed files
with
965 additions
and
1,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
|
||
# Read me | ||
README.Rmd | ||
README_files* | ||
README_cache* | ||
|
||
^vignettes/introduction_cache$ | ||
^doc$ | ||
^Meta$ | ||
^codecov\.yml$ | ||
^dev$ | ||
^README_cache$ | ||
^README_files$ | ||
README.Rmd | ||
^.git$ | ||
.coveralls.yml | ||
.travis.yml | ||
.github |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,30 @@ | ||
Package: tidygate | ||
Type: Package | ||
Title: Add Gate Information to Your Tibble | ||
Version: 0.5.3 | ||
Title: Interactively gate points | ||
Version: 1.0.9 | ||
Authors@R: | ||
c(person(given = "Stefano", | ||
family = "Mangiola", | ||
role = c("aut", "cre"), | ||
email = "[email protected]"), | ||
person(given = "Wajid", | ||
family = "Jawaid", | ||
role = "ctb")) | ||
role = "ctb"), | ||
person(given = "William", | ||
family = "Hutchison", | ||
role = "aut") | ||
) | ||
Maintainer: Stefano Mangiola <[email protected]> | ||
Description: It interactively or programmatically label points within custom gates on two dimensions <https://github.com/stemangiola/tidygate>. | ||
The information is added to your tibble. It is based on the package 'gatepoints' from Wajid Jawaid (who is also author of this package). The code of 'gatepoints' was nto integrated in 'tidygate'. | ||
The benefits are (i) in interactive mode you can draw your gates on extensive 'ggplot'-like scatter plots; | ||
(ii) you can draw multiple gates; and (iii) you can save your gates and apply the programmatically. | ||
Description: | ||
tidygate allows you to interactively gate points on a scatter plot. Interactively drawn gates are | ||
recorded and can be applied programmatically to reproduce results exactly. Programmatic gating is | ||
based on the package gatepoints by Wajid Jawaid (who is also an author of this package). | ||
License: GPL-3 | ||
Depends: | ||
R (>= 3.6.0) | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 7.3.1 | ||
Depends: | ||
R (>= 3.6.0) | ||
Imports: | ||
utils, | ||
graphics, | ||
|
@@ -43,7 +47,8 @@ RdMacros: lifecycle | |
Suggests: | ||
testthat, | ||
markdown, | ||
knitr | ||
knitr, | ||
readr | ||
VignetteBuilder: | ||
knitr | ||
Biarch: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,8 @@ | |
#' | ||
#' | ||
"gate_list" | ||
|
||
#' Demo gate data | ||
#' | ||
#' @keywords data | ||
"demo_gate_data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
## Author: Wajid Jawaid | ||
## Email: [email protected] | ||
## Date: 14 November 2016 | ||
# Author: Wajid Jawaid | ||
# Email: [email protected] | ||
# Date: 14 November 2016 | ||
|
||
##' Freehand select | ||
##' | ||
##' Freehand select function. First generate a 2D plot using R's plot function, | ||
##' then select gate region by left clicking. Close polygon by right clicking. | ||
#' Freehand select | ||
#' | ||
#' Freehand select function. First generate a 2D plot using R's plot function, | ||
#' then select gate region by left clicking. Close polygon by right clicking. | ||
##' The function will return the rownames of the enclosed points by the rownames | ||
##' of th co-ordinates given in \code{data}. | ||
##' @title Freehand select | ||
|
@@ -19,6 +19,7 @@ | |
##' names parameter is TRUE. If names is FALSE then a logical vector indicating whether points | ||
##' are in the polygon is returned. | ||
##' @author Wajid Jawaid | ||
##' @importFrom lifecycle deprecate_warn | ||
##' @export | ||
##' @examples | ||
##' \dontrun{ | ||
|
@@ -29,6 +30,8 @@ | |
##' } | ||
##' @importFrom graphics locator lines points | ||
fhs <- function(data, mark = TRUE, names = TRUE, ...) { | ||
lifecycle::deprecate_warn("1.0.0", "tidygate::fhs()", with = "tidygate::gate()") | ||
|
||
cat("Mark region on plot.\n") | ||
if (!(is.data.frame(data) || is.matrix(data))) stop("data must be a data frame or matrix") | ||
if (is.null(rownames(data))) rownames(data) <- 1:nrow(data) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.