Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
william-hutchison committed Jul 4, 2024
1 parent 574bbc5 commit c818fc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ To select points which appear within any gates, filter for non-empty strings. To
mtcars_gated |>
filter(gated_interactively != "")
# Select cells within gate 2
# Select points within gate 2
mtcars_gated |>
filter(str_detect(gated_interactively, "2"))
```
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ install.package("tidygate")

## Example usage

tidygate provides a single user-facing functions: `gate`. The following
tidygate provides a single user-facing function: `gate`. The following
examples make use of this function, three packages from the tidyverse
and the inbuilt `mtcars` dataset.

``` r
library(tidygate)
library(dplyr)
library(ggplot2)
library(stringr)
library(tidygate)

mtcars
```
Expand Down Expand Up @@ -88,10 +88,10 @@ user-defined X and Y coordinates. Colour, shape, size and alpha can be
defined as constant values, or can be controlled by values in a
specified column.

Once the plot has been created, multiple lasso selection gates can be
drawn with the mouse. When you have finished your selection, click
continue. `gate` will then return a vector of strings, recording the
gates each X and Y coordinate pair is within.
Once the plot has been created, multiple gates can be drawn with the
mouse. When you have finished, click continue. `gate` will then return a
vector of strings, recording the gates each X and Y coordinate pair is
within.

``` r
mtcars_gated <-
Expand All @@ -103,7 +103,7 @@ mtcars_gated <-

To select points which appear within any gates, filter for non-empty
strings. To select points which appear within a specific gate, string
pattern matchings can be used.
pattern matching can be used.

``` r
# Select points within any gate
Expand Down Expand Up @@ -176,7 +176,7 @@ mtcars_gated |>
## Pontiac Firebird 1,2

Details of the interactively drawn gates are saved to
`tidygate_env$gates` This variable is overwritten each time interactive
`tidygate_env$gates`. This variable is overwritten each time interactive
gates are drawn, so save it right away if you would like to access it
later.

Expand Down
2 changes: 1 addition & 1 deletion vignettes/introdution.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ To select points which appear within any gates, filter for non-empty strings. To
mtcars_gated |>
filter(gated_interactively != "")
# Select cells within gate 2
# Select points within gate 2
mtcars_gated |>
filter(str_detect(gated_interactively, "2"))
```
Expand Down

0 comments on commit c818fc3

Please sign in to comment.