Identical to manifoldMap, but adds images to an existing ggplot2
object or creates one.
ggManifoldMap(ggObject = NULL, x, n = nrow(x), images, scale = 1)
a ggplot
object. If not provided, a new ggplot
object with geom_blank
will be created.
A largeVis
object or [N,D] matrix of coordinates.
The number of images to sample.
The images. A 3-D or 4-D array.
Proportion to scale the images to.
A ggplot
object.
See manifoldMap
. Note that this function can be considerably slower to display than manifoldMap
.
It therefore should only be used if other features of ggplot2
are required.
If the objects in the list are matrix
objects, or the array is 3-dimensional, the images will be treated as
greyscale. If there is an additional dimension, it must have a length of 3 and be RGB color layers.