plotColourScatter | R Documentation |
A better version of plot
plotColourScatter(
x,
y,
xlab = "",
ylab = "",
col = "defaultBlue",
main = "cor",
add = F,
cex = 1,
showDensity = T,
...
)
x |
Numeric. The x coordinates. |
y |
Numeric. The y coordinates. |
add |
boolean. If adding the plot onto whatever is alrady there. Essentially turns plot() it into points(). |
showDensity |
Boolean. Adds a gradient through cyan and green in dense regions. Default TRUE. |
... |
Remaining parameters are passed to plot(...), or to points(...) if add. |
This plotting function does the same as plot() in essence, but the default looks nicer than the black rings, and overplotting smoothly transitions into heatmap representation. The price is that pdfs are a bit larger than from a plot() call.
x = rnorm(10000, ((1:10000)/10000)^2, 0.01)
y = rnorm(10000, ((1:10000)/10000)^3, 0.01)
plotColourScatter(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.