plot_signal | R Documentation |
Plot a list of superposed or faceted signals or images (in 2D or 3D).
plot_signal(x, y, z, by, group = NULL, byrow = FALSE,
xlim = NULL, ylim = NULL, col = NULL, alphapow = 1,
xlab = NULL, ylab = NULL, layout = NULL, free = "",
n = Inf, downsampler = "lttb", key = TRUE, grid = TRUE,
isPeaks = FALSE, annPeaks = 0, engine = NULL, ...)
plot_image(x, y, z, vals, by, group = NULL, byrow = FALSE,
zlim = NULL, xlim = NULL, ylim = NULL, col = NULL, alphapow = 1,
zlab = NULL, xlab = NULL, ylab = NULL, layout = NULL, free = "",
enhance = NULL, smooth = NULL, scale = NULL, key = TRUE,
rasterImages = NULL, rasterParams = NULL, useRaster = !is3d,
grid = TRUE, asp = 1, engine = NULL, ...)
x , y , z , vals |
Lists of vectors to plot such that |
by |
A vector of labels indicating facets (i.e., which values should be plotted as separate sub-plots). |
group |
A vector of labels indicating groups (i.e., which values should be indicated by color as belonging to the same group). |
byrow |
If |
xlim , ylim , zlim |
The plot limits. See |
xlab , ylab , zlab |
Plotting labels. |
col |
A vector giving the color map for encoding the image, or a function that returns a vector of |
alphapow |
The power scaling of the alpha channel (if used). |
layout |
A vector of the form |
free |
A string specifying the free spatial dimensions during faceting. E.g., |
n , downsampler |
See |
key |
Should a color key be generated for the image? |
grid |
Should a rectangular grid be included in the plot? |
isPeaks |
Whether the signal should be plotted as peaks or as a continuous signal. |
annPeaks |
If |
engine |
The plotting engine. Default is to use base graphics. Using "plotly" requires the |
... |
Additional graphical parameters (as in |
enhance |
The name of a contrast enhancement method, such as |
smooth |
The name of a smoothing method, such as |
scale |
If |
asp |
The aspect ratio. See |
rasterImages , rasterParams |
A list of rasters and raster parameters (e.g., |
useRaster |
Should a bitmap raster be used for plotting? For 2D images, this is typically faster on supported devices. A fallback to polygon-based plotting is used if raster plotting is not supported. For 3D images, |
An object of class vizi_plot
.
Kylie A. Bemis
vizi
,
vizi_pixels
require(datasets)
# plot signals
set.seed(1)
s <- simspec(6)
plot_signal(domain(s), s, group=colnames(s))
# volcano image
pos <- expand.grid(x=1:nrow(volcano), y=1:ncol(volcano))
plot_image(pos$x, pos$y, volcano, col=cpal("plasma"))
# plot original and transformed images
volcano2 <- trans2d(volcano, rotate=15, translate=c(-5, 5))
plot_image(list(original=volcano, transformed=volcano2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.