Description Usage Arguments Value Author(s) See Also Examples
This is a simple function to add a tile (with the filename tileFilename
) back to the tile library (passed as the argument libForMosaic
). The tile data in the parameter space is copied from the original tile library (passed as the argument libForMosaicFull
).
1 | addBackTile(tileFilename, libForMosaic, libForMosaicFull)
|
tileFilename |
The filename of the tile to add back in the tile library. |
libForMosaic |
The tile library where the tile should be added back. |
libForMosaicFull |
The original tile library containing the data of the all the tiles in the parameter space. |
It returns the tile library libForMosaic, with the requested tile added.
Alberto Krone-Martins
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Creates the tile library data frame from the example tiles
my2MassTilesFull <- createLibraryIndexDataFrame(system.file("extdata/2Massier/",
package="RsimMosaic"))
my2MassTiles <- my2MassTilesFull
# Get a random filename of one of the tiles
idx <- round(runif(1, 1, length(my2MassTiles[,1])))
tileFilename <- as.character(my2MassTiles[idx,1])
# Remove it from the library
my2MassTiles <- removeTile(tileFilename, my2MassTiles)
# Now, put it back
my2MassTiles <- addBackTile(tileFilename, my2MassTiles, my2MassTilesFull)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.