Skip to content

Commit

Permalink
Merge branch 'dev' into dev2
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed May 28, 2024
2 parents 1df549e + ddf35bf commit 9f47525
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: GiottoVisuals
Title: Visuals for the Giotto spatial biology analysis ecosystem
Version: 0.2.3
Version: 0.2.4
Authors@R: c(
person("Ruben", "Dries", email = "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7650-7754")),
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

# GiottoVisuals 0.2.4


# GiottoVisuals 0.2.3 (2024/05/28)

## bug fixes
Expand Down
19 changes: 14 additions & 5 deletions R/vis_spatial.R
Original file line number Diff line number Diff line change
Expand Up @@ -481,9 +481,6 @@
#' @param theme_param list of additional params passed to `ggplot2::theme()`
#' @details coord_fix_ratio: set to NULL to use default ggplot parameters
#' @returns ggplot
#' @examples
#' g <- GiottoData::loadGiottoMini("visium")
#' spatPlot2D(g)
#' @export
spatPlot2D <- function(
gobject,
Expand Down Expand Up @@ -760,8 +757,20 @@ spatPlot2D <- function(
#' @family spatial visualizations
#' @returns ggplot
#' @examples
#' g <- GiottoData::loadGiottoMini("visium")
#' spatPlot(g)
#' g <- GiottoData::loadGiottoMini("visium", verbose = FALSE)
#' spatPlot(g, show_image = TRUE, image_name = "image")
#'
#' # the more specific spatPlot2D with networks shown
#' spatPlot2D(g, show_image = TRUE, image_name = "image", show_network = TRUE)
#'
#' # plotting of some cell metadata (number of different features detected)
#' spatPlot2D(g,
#' show_image = TRUE,
#' image_name = "image",
#' cell_color = "nr_feats",
#' color_as_factor = FALSE,
#' gradient_style = "sequential"
#' )
#' @export
#' @seealso \code{\link{spatPlot3D}}
spatPlot <- function(...) {
Expand Down
18 changes: 14 additions & 4 deletions man/spatPlot.Rd

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

0 comments on commit 9f47525

Please sign in to comment.