Skip to content

Commit ce9f9b4

Browse files
committed
R CMD check notes/warnings
1 parent 2fe3e62 commit ce9f9b4

6 files changed

Lines changed: 21 additions & 13 deletions

File tree

R/plotFrame.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#' @param x \code{SpatialData} object.
66
#' @param i character string or index; the label element to plot.
77
#' @param j index or name of target coordinate system.
8-
#' @param assay character string; in case of \code{c} denoting a row name,
9-
#' specifies which \code{assay} data to use (see \code{\link{getTable}}).
8+
#' @param assay character string; in case of \code{c}
9+
#' denoting a row name, specifies which \code{assay}
10+
#' data to use (see \code{\link[spatialdataR]{getTable}}).
1011
#' (ignored when \code{x} is a \code{SpatialDataPoint}).
1112
#' @param ... option aesthetic arguments passed \code{geom_sf}.
1213
#'

R/plotImage.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#'
55
#' @description ...
66
#'
7-
#' @param x \code{\link{SpatialData}} object.
7+
#' @param x \code{\link[spatialdataR]{SpatialData}} object.
88
#' @param i element to use from a given layer.
99
#' @param j index or name of target coordinate system.
1010
#' @param k index of the scale to render; by default (NULL), will auto-select

R/plotLabel.R

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
#' the default (NULL), gives a binary image of whether or not a
88
#' pixel is non-zero; alternatively, a character string specifying
99
#' a \code{colData} column or row name in an annotation \code{table}.
10-
#' @param assay character string; in case of \code{c} denoting a row name,
11-
#' specifies which \code{assay} data to use (see \code{\link{getTable}}).
10+
#' @param assay character string;
11+
#' in case of \code{c} denoting a row name,
12+
#' specifies which \code{assay} data to use
13+
#' (see \code{\link[spatialdataR]{getTable}}).
1214
#' @param a scalar numeric in [0, 1]; alpha value passed to \code{geom_tile}.
1315
#' @param pal character vector; color for discrete/continuous values
1416
#' (interpolated automatically when insufficient values are provided).
@@ -39,15 +41,17 @@
3941
#' p + plotLabel(x, i,
4042
#' c="channel_1_sum",
4143
#' pal=c("lavender", "blue"))
42-
#'
44+
NULL
45+
46+
#' @export
47+
#' @rdname plotLabel
4348
#' @importFrom methods as
4449
#' @importFrom rlang .data
4550
#' @importFrom S4Vectors metadata
4651
#' @importFrom SingleCellExperiment colData
4752
#' @importFrom grDevices colors hcl.colors colorRampPalette
4853
#' @importFrom ggplot2 scale_fill_manual scale_fill_gradientn
4954
#' @importFrom ggplot2 aes theme unit guides guide_legend geom_tile
50-
#' @export
5155
setMethod("plotLabel", "SpatialData", \(x, i=1, j=1, k=NULL, c=NULL,
5256
a=0.5, pal=NULL, nan=NA, assay=1, t=NULL, z=NULL) {
5357

man/plotFrame.Rd

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plotImage.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plotLabel.Rd

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)