plotColourScatter: A better version of plot

View source: R/runDEexon.R

plotColourScatterR Documentation

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

x = rnorm(10000, ((1:10000)/10000)^2, 0.01)
y = rnorm(10000, ((1:10000)/10000)^3, 0.01)
plotColourScatter(x, y)


ChristofferFlensburg/superFreq documentation built on Nov. 15, 2023, 6:15 a.m.