powered by
The function plots 2D images for a data matrix.
levelplot2D( S, coords, lim = c(min(S), max(S)), xlim = c(0, max(coords[, 1])), ylim = c(0, max(coords[, 2])), color = bluered(100), layout = c(1, nrow(S)), file = NULL )
No return value.
Data matrix with q rows (sample) and p colums (pixel).
Coordinates matrix with p rows (pixel) and 2 columns (dimension), specifying the coordinates of the data points.
2-dimensional numeric vector, specifying the limits for the data.
2-dimensional numeric vector, specifying the lower and upper limits of x.
x
2-dimensional numeric vector, specifying the lower and upper limits of y.
y
Colorbar.
2-dimensional numeric vector, specifying the number of rows and number of columns for the layout of components.
Name of the file to be saved.
sim = sim_2Dimage(length = 30, sigma = 5e-4, n = 30, smooth = 6) levelplot2D(sim$S,lim = c(-0.04,0.04), sim$coords)
Run the code above in your browser using DataLab