createGiottoImage
¶
createGiottoImage
Description¶
Creates a giotto image that can be added to a Giotto object and/or used to add an image to the spatial plotting functions
Usage¶
createGiottoImage(
gobject = NULL,
spat_unit = NULL,
spatial_locs = NULL,
spat_loc_name = NULL,
mg_object,
name = "image",
image_transformations = NULL,
negative_y = TRUE,
do_manual_adj = FALSE,
xmax_adj = 0,
xmin_adj = 0,
ymax_adj = 0,
ymin_adj = 0,
scale_factor = 1,
x_shift = NULL,
y_shift = NULL,
scale_x = NULL,
scale_y = NULL,
order = c("first_scale", "first_adj"),
xmin_set = NULL,
xmax_set = NULL,
ymin_set = NULL,
ymax_set = NULL,
verbose = TRUE
)
Arguments¶
Argument |
Description |
---|---|
|
giotto object |
|
spatial unit |
|
spatial locations (alternative if |
|
name of spatial locations within gobject |
|
magick image object |
|
name for the image |
|
vector of sequential image transformations |
|
Map image to negative y spatial values if TRUE during automatic alignment. Meaning that origin is in upper left instead of lower left. |
|
flag to use manual adj values instead of automatic alignment when given a gobject or spatlocs |
|
adjustment of the maximum or maximum x or y-value to align the image |
|
scaling of image dimensions relative to spatial coordinates |
|
shift image along x or y axes |
|
independently scale image in x or y direction |
|
perform scaling or adjustments and shifts first |
|
values to override image minmax spatial anchors when doing adjustments |
|
be verbose |
Details¶
- image_transformations: transformation options from magick library
[ flip_x_axis ] flip x-axis ( ``image_flop` <#imageflop>`_ ) [ flip_y_axis ] flip y-axis ( ``image_flip` <#imageflip>`_ ) Example: image_transformations = c(flip_x_axis, flip_y_axis); first flip x-axis and then y-axis
Value¶
a giottoImage object