plotGVF | R Documentation |
Plot the estimated genetic variant function obtained by SNPgvf or a given functional data object(s).
plotGVF(x, y = NULL, Lfdobj = 0, href = TRUE, titles = NULL, xlim = NULL, ylim = NULL, xlab = NULL, ylab = NULL, ask = FALSE, nx = NULL, axes = NULL)
x |
functional data object(s) to be plotted, such as the estimated genetic variant function obtained by SNPgvf. |
y |
sequence of points at which to evaluate the functions 'x' and plot on the horizontal axis. Defaults to seq(rangex[1], rangex[2], length = nx). |
Lfdobj |
either a nonnegative integer or a linear differential operator object. If present, the derivative or the value of applying the operator is plotted rather than the functions themselves. |
href |
a logical variable: If TRUE, add a horizontal reference line at 0. |
titles |
a vector of strings for identifying curves |
xlim |
a vector of length 2 containing axis limits for the horizontal axis. |
ylim |
a vector of length 2 containing axis limits for the vertical axis. |
xlab |
a label for the horizontal axis. |
ylab |
a label for the vertical axis. |
ask |
a logical value: If TRUE, each curve is shown separately, and the plot advances with a mouse click |
nx |
the number of points to use to define the plot. The default is usually enough, but for a highly variable function more may be required. |
axes |
Either a logical or a list or NULL.
|
plot the estimated genetic variant function.
See Also as SNPgvf
.
library(FunctanSNP) n <- 20 m <- 50 simdata <- simX(n, m, seed = 1, d.ratio = 0) X <- simdata$X location <- simdata$location SNPgvfres <- SNPgvf(location, X, type = "Bspline", nbasis = 5, params = 4, Plot = FALSE) plotGVF(SNPgvfres)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.