Description Usage Arguments Details Author(s) See Also
View source: R/mysmoothScatter.R
This function is a reimplementation of smoothScatter
. For nicer graphics output the background image is written by grid.raster
. It is recommended to use the smoothScatter
function from the graphics
package.
1 2 3 4 5 | MAPK.smooth.scatter(x, y, n = 75,
nrpoints = 100, col = "blue",
pch = 20, size = unit(0.3, "char"), cex = 1.2,
colramp = colorRampPalette(c("white", "blue", "green", "yellow", "red"))(256),
xlab = "", ylab = "", respect = FALSE)
|
x |
x-values. |
y |
y-values. Has to be the same length as x. |
n |
nr of bins used for the kernel density estimation. |
nrpoints |
nrpoints points in the lowest density region will be plotted. This allows the identification of outliers. |
col |
color of points. |
pch |
symbol to plot points. |
size |
The size of the points. |
cex |
The size of the label text. |
colramp |
color ramp for the density plot. |
xlab,ylab |
axis labels. |
respect |
A logical value indicating if the height and width of the axis scales should respect each other. |
Plots a density plot with grid
graphics.
Bernd Fischer
RNAinteractMAPK-package
, smoothScatter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.