Skip to content

Commit

Permalink
Merge pull request #55 from rnabioco/checks
Browse files Browse the repository at this point in the history
Checks
  • Loading branch information
sheridar authored Jun 19, 2022
2 parents 8604495 + 256f5c7 commit a675616
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 76 deletions.
37 changes: 0 additions & 37 deletions R/geom-point-trace.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,6 @@
#' geom_point_trace() +
#' ggplot2::theme_minimal()
#'
#' # Modify point color for each group
#' ggplot2::ggplot(
#' clusters,
#' ggplot2::aes(UMAP_1, UMAP_2, fill = cluster)
#' ) +
#' geom_point_trace() +
#' ggplot2::theme_minimal()
#'
#' # Outline groups when coloring by a continuous variable
#' ggplot2::ggplot(
#' clusters,
#' ggplot2::aes(UMAP_1, UMAP_2, fill = signal, group = cluster)
#' ) +
#' geom_point_trace(stroke = 0.5) +
#' ggplot2::scale_fill_gradientn(colours = c("white", "red")) +
#' ggplot2::theme_minimal()
#'
#' # Only outline bottom points
#' ggplot2::ggplot(
#' clusters,
#' ggplot2::aes(UMAP_1, UMAP_2, fill = cluster)
#' ) +
#' geom_point_trace(trace_position = "bottom") +
#' ggplot2::theme_minimal()
#'
#' # Outline a subset of points
#' ggplot2::ggplot(
#' clusters,
Expand All @@ -81,18 +56,6 @@
#' ) +
#' ggplot2::theme_minimal()
#'
#' # Remove outline
#' ggplot2::ggplot(
#' clusters,
#' ggplot2::aes(UMAP_1, UMAP_2, fill = cluster)
#' ) +
#' geom_point_trace(
#' trace_position = signal < 0 | signal > 17,
#' background_params = list(color = NA, fill = "grey85"),
#' color = NA
#' ) +
#' ggplot2::theme_minimal()
#'
#' @export
geom_point_trace <- function(mapping = NULL, data = NULL, stat = "identity",
position = "identity", ...,
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ knitr::opts_chunk$set(

<!-- badges: start -->
[![R-CMD-check](https://github.com/rnabioco/ggtrace/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rnabioco/ggtrace/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/rnabioco/ggtrace/branch/master/graph/badge.svg)](https://codecov.io/gh/rnabioco/ggtrace?branch=master)
[![Codecov test coverage](https://codecov.io/gh/rnabioco/ggtrace/branch/master/graph/badge.svg)](https://app.codecov.io/gh/rnabioco/ggtrace?branch=master)
<!-- badges: end -->

ggtrace provides ggplot2 geoms that allow groups of data points to be outlined
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

[![R-CMD-check](https://github.com/rnabioco/ggtrace/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rnabioco/ggtrace/actions/workflows/R-CMD-check.yaml)
[![Codecov test
coverage](https://codecov.io/gh/rnabioco/ggtrace/branch/master/graph/badge.svg)](https://codecov.io/gh/rnabioco/ggtrace?branch=master)
coverage](https://codecov.io/gh/rnabioco/ggtrace/branch/master/graph/badge.svg)](https://app.codecov.io/gh/rnabioco/ggtrace?branch=master)
<!-- badges: end -->

ggtrace provides ggplot2 geoms that allow groups of data points to be
Expand Down
Binary file modified man/figures/README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 0 additions & 37 deletions man/geom_point_trace.Rd

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

0 comments on commit a675616

Please sign in to comment.