Skip to content

Commit

Permalink
chore: add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajic committed Oct 25, 2024
1 parent ffde2f1 commit 9df41f6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion R/methods-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ NULL




# * giottoImage ####

#' @describeIn plot-generic Plot \emph{magick}-based giottoImage object. ... param passes to \code{\link{.plot_giottoimage_mg}}
#' @export
setMethod("plot", signature(x = "giottoImage", y = "missing"), function(x, y, ...) .plot_giottoimage_mg(giottoImage = x, ...))

# * giottoLargeImage ####

#' @describeIn plot-generic Plot \emph{terra}-based giottoLargeImage object. ... param passes to \code{\link{.plot_giottolargeimage}}
#' @param col character. Colors. The default is grDevices::grey.colors(n = 256, start = 0, end = 1, gamma = 1)
#' @param max_intensity (optional) value to treat as maximum intensity in color scale
Expand Down Expand Up @@ -87,15 +89,20 @@ setMethod(
}
)

# * giottoAffineImage ####

#' @rdname plot-generic
#' @export
setMethod(
"plot", signature(x = "giottoAffineImage", y = "missing"),
function(x, ...) {
browser()
.plot_giottoaffineimage(x, ...)
}
)

# * giottoPolygon ####

#' @describeIn plot-generic Plot \emph{terra}-based giottoPolygon object. ... param passes to \code{\link[terra]{plot}}
#' @param point_size size of points when plotting giottoPolygon object centroids
#' @param type what to plot: either 'poly' (default) or polygon 'centroid'
Expand Down Expand Up @@ -130,6 +137,8 @@ setMethod(
}
)

# * giottoPoints ####

#' @describeIn plot-generic \emph{terra}-based giottoPoint object. ... param passes to \code{\link[terra]{plot}}
#' @param point_size size of points when plotting giottoPoints
#' @param feats specific features to plot within giottoPoints object
Expand Down Expand Up @@ -204,6 +213,7 @@ setMethod(
}
)

# * spatLocsObj ####

#' @describeIn plot-generic Plot a spatLocsObj
#' @examples
Expand All @@ -226,6 +236,7 @@ setMethod("plot", signature(x = "spatLocsObj", y = "missing"), function(x, ...)
}
})

# * dimObj ####

#' @describeIn plot-generic Plot a dimObj
#' @param dims dimensions to plot
Expand Down Expand Up @@ -256,6 +267,7 @@ setMethod(
}
)

# * spatialNetworkObj ####

#' @describeIn plot-generic Plot a spatialNetworkObj
#' @export
Expand Down Expand Up @@ -299,6 +311,7 @@ setMethod("plot", signature(x = "spatialNetworkObj", y = "missing"), function(x,
)
})

# * affine2d ####

#' @describeIn plot-generic Plot a affine2d. blue is start, red is end
#' @export
Expand Down

0 comments on commit 9df41f6

Please sign in to comment.