Skip to content

Commit

Permalink
chore: update docs for spatPlot2D()
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed May 28, 2024
1 parent 7b237a0 commit ddf35bf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
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 ddf35bf

Please sign in to comment.