heatplot: Make colorful scatter plots where the color show relative...

Description Usage Arguments Details Author(s) Examples

View source: R/heatplot.R

Description

Simple way to make scatter plot heatmaps

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
heatplot(
  x,
  y,
  z,
  bgcol = "#777044",
  coltype = "heat",
  ccex = 1.5,
  circles = TRUE,
  ...
)

Arguments

x

vector for x position

y

vector for y position

z

vector for point size

bgcol

Background color. Default is a brown color: "#777044"

coltype

What family of colors to use. Default is "heat"

ccex

Controls point size. Default is 1.5

circles

Do you want circles drawn around the plots? (can be bad when there are a lot of points) Defaults to TRUE

...

Additional parameters passed to plot()

Details

Plots x-y points with color to indicate size.

Author(s)

Gene Leynes

Examples

1
2
3
4
5
6
7
8
9
N <- 1e4
DT <- data.table(x <- 1:N,
				 y <- -exp(-x/3000-100) * 5e44 + 30 +
				 		 	rnorm(N, sd = 1 + (log(x/10)*.3)),
				 z <- sqrt(y) + rnorm(N, sd = 1 + (x*.03)))
DT[ ,plot(x,y)]
DT[ ,plot(x,z)]
DT[ ,heatplot(x,y,z)]
DT[ ,heatplot(x,y,z, circles=FALSE)]

geneorama/geneorama documentation built on Oct. 17, 2020, 12:35 a.m.