plot-vizi | R Documentation |
These functions provide plotting methods for various graphical marks. They are not intended to be called directly.
## S3 method for class 'vizi_points'
plot(x, plot = NULL, ...,
n = Inf, downsampler = "lttb", jitter = "",
sort = is.finite(n))
## S3 method for class 'vizi_lines'
plot(x, plot = NULL, ...,
n = Inf, downsampler = "lttb", jitter = "",
sort = is.finite(n))
## S3 method for class 'vizi_peaks'
plot(x, plot = NULL, ...,
n = Inf, downsampler = "lttb", jitter = "",
sort = is.finite(n))
## S3 method for class 'vizi_text'
plot(x, plot = NULL, ...,
adj = NULL, pos = NULL, offset = 0.5)
## S3 method for class 'vizi_intervals'
plot(x, plot = NULL, ...,
length = 0.25, angle = 90)
## S3 method for class 'vizi_rules'
plot(x, plot = NULL, ...)
## S3 method for class 'vizi_bars'
plot(x, plot = NULL, ...,
width = 1, stack = FALSE)
## S3 method for class 'vizi_boxplot'
plot(x, plot = NULL, ...,
range = 1.5, notch = FALSE, width = 0.8)
## S3 method for class 'vizi_image'
plot(x, plot = NULL, ...,
alpha = NA, interpolate = TRUE, maxColorValue = 1)
## S3 method for class 'vizi_pixels'
plot(x, plot = NULL, ...,
enhance = FALSE, smooth = FALSE, scale = FALSE,
useRaster = TRUE)
## S3 method for class 'vizi_voxels'
plot(x, plot = NULL, ...,
xslice = NULL, yslice = NULL, zslice = NULL)
x |
A graphical mark. |
plot |
A |
... |
Additional graphical parameters passed to the underlying base graphics plotting function. |
n |
Transformation. Maximum number of points to plot. This is useful for downsampling series with far more data points than are useful to plot. See |
downsampler |
Transformation. If |
jitter |
Transformation. Should jitter be applied to one or more position channels? One of |
sort |
Transformation. Should the data be sorted (along the x-axis) before plotting? Mostly useful for line charts. |
width |
The width of the bars or boxplots. |
stack |
Should bars be stacked versus grouped side-by-side? |
adj , pos , offset |
See |
length , angle |
See |
range , notch |
See |
alpha |
Opacity level from 0 to 1. |
interpolate |
See |
maxColorValue |
See |
enhance |
Transformation. The name of a contrast enhancement method, such as |
smooth |
Transformation. The name of a smoothing method, such as |
scale |
Transformation. If |
useRaster |
Should a bitmap raster be used for plotting? This is typically faster on supported devices. A fallback to polygon-based plotting is used if raster plotting is not supported. |
xslice , yslice , zslice |
Numeric vectors giving the x, y, and/or z coordinates of the volumetric slices to plot. If none are provided, defaults to plotting all z-slices. |
These methods are not intended to be called directly. They are presented here to document the transformations and parameters they accept. These should be passed a list to the trans
and params
arguments in add_mark
.
See add_mark
for supported encodings.
Kylie A. Bemis
vizi
,
add_mark
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.