Learn R Programming

superFreq (version 1.2.3)

plotColourScatter: A better version of plot

Description

A better version of plot

Usage

plotColourScatter(x, y, xlab = "", ylab = "", col = "defaultBlue",
  main = "cor", add = F, cex = 1, showDensity = T, ...)

Arguments

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.

Details

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.

Examples

Run this code
# NOT RUN {
x = rnorm(10000, ((1:10000)/10000)^2, 0.01)
y = rnorm(10000, ((1:10000)/10000)^3, 0.01)
plotColourScatter(x, y)

# }

Run the code above in your browser using DataLab